3 ms·
>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 th
by AnthonyMouse 13y ago
>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.