Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ singleton prevent copy

// this can be even in public section
Foo(Foo const&) = delete;
Foo& operator=(Foo const&) = delete;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #singleton #prevent #copy
ADD COMMENT
Topic
Name
3+8 =