O'Reilly logo
  • Ben Medina thinks this is interesting:

notice how the Lock class no longer declares a destructor

From

Cover of Effective C++: 55 Specific Ways to Improve Your Programs and Designs, Third Edition

Note

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.