t makes no sense to have the copy assignment operator call the copy constructor, because you'd be trying to construct an object that already exists.
- 2. Constructors, Destructors, and Assignment Operators
- from Effective C++: 55 Specific Ways to Improve Your Programs and Designs, Third Edition
- Publisher: Addison-Wesley Professional
- Released: May 2005
This contradicts to the solution provided in previous item for avoiding self-assignment....
Share this highlighthttp://www.safaribooksonline.com/a/effective-c-55/650807/