To make a class not copyable in C++98 we can declare the copy constructor and copy assignment operator as private in the header file.
If there isn't even a definition in the source file they can't even be invoked in private context.
There are some definitions (mainly from me) of private copy constructors & assignment operators. If the class should never be copyable these should be removed.
To make a class not copyable in C++98 we can declare the copy constructor and copy assignment operator as private in the header file. If there isn't even a definition in the source file they can't even be invoked in private context.
There are some definitions (mainly from me) of private copy constructors & assignment operators. If the class should never be copyable these should be removed.