J
junw2000
Is it possible to destruct a static object or variable before the
program terminate?
Thanks
program terminate?
Thanks
Is it possible to destruct a static object or variable before the
program terminate?
Possible, yes. Desirable, no. The object will be destroyed twice.Is it possible to destruct a static object or variable before the
program terminate?
Possible, yes. Desirable, no. The object will be destroyed twice.
Maybe you want a singleton rather than a static object?
Not necessarily.Singleton is still implemented using static variable, right? What is
the advantage of singleton than static variable?
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.