Boost logo

Boost :

From: Rob Stewart (stewart_at_[hidden])
Date: 2005-03-03 22:37:15

From: Jason Hise <chaos_at_[hidden]>
> It would appear that such tests are required to execute completely
> inside of a function block. Unfortunately, the very nature of a
> singleton makes this impossible. I need to be able to check the
> lifetimes of singletons with relation to each other, and with relation
> to static and global objects. This means I cannot even use cout to
> report results, as the standard streams could close up shop before the
> last of my singletons is destroyed.

They are supposed to survive however long your code needs them.
How the implementation manages that is pure magic, as far as we
know. It's just supposed to work. (27.3/2 plus footnote 265)

Rob Stewart                           stewart_at_[hidden]
Software Engineer           
Susquehanna International Group, LLP  using std::disclaimer;

Boost list run by bdawes at, gregod at, cpdaniel at, john at