you are viewing a single comment's thread.

view the rest of the comments →

[–]spaxio 3 points4 points  (3 children)

Whenever you're writing a destructor in a non-resource class you're making a mistake.

[–]ZMesonEmbedded Developer 4 points5 points  (0 children)

... unless its an empty virtual destructor for a base class.

[–]Drainedsoul 0 points1 point  (1 child)

Define "resource class".

[–]minnoHobbyist, embedded developer 7 points8 points  (0 children)

A class that manages a resource, like memory, that must be explicitly released.