I'm reading Stroustrup's A Tour of C++, and in it there's a line:
To complement
=default, we have=deleteto indicate that an operation is not to be generated. A base class in a class hierarchy is the classical example where we don't want to allow a memberwise copy.
As someone new to copy/move semantics, I'm having trouble understanding why base classes wouldn't want to have a memberwise copy. I would think that the base class would be responsible for copying its members and the derived class would be responsible for copying the rest. Any examples would be much appreciated.