N
Nick Keighley
Hi,
I want a particular function to run after everything has beeen
destructed.
It's looking for memory leaks.
atexit() doesn't seem to suit my purpose as global statics can be
destructed
after all the atexit()s.
Would a global static at the beginning of the file containing main()
do the job
or have I run into another aspect of the "static initialization order
fiasco"?
I want a particular function to run after everything has beeen
destructed.
It's looking for memory leaks.
atexit() doesn't seem to suit my purpose as global statics can be
destructed
after all the atexit()s.
Would a global static at the beginning of the file containing main()
do the job
or have I run into another aspect of the "static initialization order
fiasco"?