I tested a pattern for declaring a singleton class in C++ that makes the default destructor 'private', but the pattern makes no use of this destructor through any member call.
I tested this code on Ubuntu QQ using the gnu g++ compliler - the destructor was called on program termination, although designated 'private'.
Who/What/How is this destructor called, since it's designated private?
Note: I am coming from the Delphi/Object Pascal world, and there is no static class declaration supported by ObjectPascal - although there are several ways to create a singleton. In my experience, 'private'('strict private'...) is PRIVATE. I see that in C++ it is not quite that way.
Explanation?