A
Allerdyce.John
Hi,
Can you please tell me when does the destructor of a static object gets
called?
Thank you.
Can you please tell me when does the destructor of a static object gets
called?
Thank you.
Hi,
Can you please tell me when does the destructor of a static object gets
called?
Thank you.
Can you please tell me when does the destructor of a static object gets
called?
Can you please tell me when does the destructor of a static object gets
called?
Matthias said:(e-mail address removed):
Can you please tell me when does the destructor of a static object gets
called?
You mean objects in unnamed namespaces [...]
A static object is created as the programs starts to run upon
allocation of all global variables... therefore it is destroyed when
all global variables are deallocated (ie. at program exit)
Diego said:are you suggesting the destructor is never called?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.