Re:C++ the Good Parts (2014)
by umanwizard on Tuesday October 06, 2020 @08:36PM
(#24704106)
You’re right, but one problem with c++ is that types are copiable by default and copies happen automatically and silently in many situations. So something like this is easy to get wrong.
Notice how I said "cleanup-via-destructor" rather than just "destructor", for this reason.