This one is simple. Don’t forget to copy all parts of an object in copy constructor or assignment operator!
There are two cases you tend to make mistakes.
- Make sure you modify copy constructor and assignment operator, if you add a member to a class.
- Make sure you call the copy constructor and assignment operator of base class in derived classes.