Reducing code duplication between operator= and the copy constructor

Viewed 6795

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?

4 Answers
Related