|
Boost : |
From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2005-09-07 16:42:58
Alexander Terekhov wrote:
>
> Anthony Williams wrote:
> [...]
> > Destruction of once_flags with static storage duration.
> >
> > If we store the return value along with the once_flag, then we really ought to
> > destroy it properly, when the once_flag is destroyed. If a once_flag has
> > static storage duration, and has a non-trivial destructor that does cleanup,
> > then we have a classic singleton cleanup problem, as John Maddock pointed out
> > --- the order of static destruction can now be important.
>
> You mean an extra non-POD version? That's not your problem... as long
> as you provide a POD version + call_once_reset/destroy().
Plus _init().
regards,
alexander.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk