notice how the
Lock class no longer declares a destructor
- 3. Resource Management
- from Effective C++: 55 Specific Ways to Improve Your Programs and Designs, Third Edition
- Publisher: Addison-Wesley Professional
- Released: May 2005
The “Rule of Zero”: a class should either manage resources, in which case it needs to declare destructors, etc., OR it should contain resource managing classes, in which case it need not declare any special member functions.
Share this highlighthttp://www.safaribooksonline.com/a/effective-c-55/2235282/