Reducing code duplication between operator= and the copy constructor
Asked 2009-09-25T12:57:32.400
23
I have a class that requires a non-default copy constructor and assignment operator (it contains lists of pointers). Is there any general way to reduce the code duplication between the copy constructor and the assignment operator?