I understand how to use the C++11 delete keyword to create classes that can't be copied or moved, but in Bjarne Stroustrup's The C++ Programming Language 4th edition, in section 3.3.4 Suppressing Operations, it says (emphasis mine):
Using the default copy or move for a class in a hierarchy is typically a disaster: given only a pointer to a base, we simply don't know what members the derived class has, so we can't know how to copy them.
Could anyone please provide a small example of this? Shouldn't the copy/move already be implemented if we are working with a pointer only to a base class?
Edit:
After I read the link provided by Igor Tandetmik, I found this (look at the "treacherous case") which gives a very clear answer to my question, on a different question about Object Slicing.