|
Boost : |
From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-02-05 17:08:25
> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Steven Watanabe
>
> AMDG
>
> Andrey Semashev <andysem <at> mail.ru> writes:
>
> >
> > Yes, you're right here. But there's nothing really dangerous in
> > running state_dispatcher constructor more than once
> concurrently. I'll
> > see what I can do about it, just to be on the safe side.
> >
>
> This has exactly the same problem that
> m_StatesInfo had. It can be used before
> it is initialized.
Is there interest in having a boost singleton? A preliminary
implementation of it could use boost::once. Then all lazy
initializations would happen through that interface.
Just a thought.
Sohail
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk