Re:Bjarne Stroustrup – The Essence of C++ [video]
by AnthonyMouse on Tuesday September 17, 2013 @08:02AM
(#6398740)
>That'll disable copy construction and assignment, which means that you'll need to think of that separately if it's needed.
If you have a pointer in a class that is exactly what you want to happen in most cases. Then if you want copies you "have to" define your own copy constructor and assignment operator that copy the object pointed to rather than just copying the pointer.
If you have a pointer in a class that is exactly what you want to happen in most cases. Then if you want copies you "have to" define your own copy constructor and assignment operator that copy the object pointed to rather than just copying the pointer.