Boost logo

Boost :

From: terekhov_at_[hidden]
Date: 2001-11-14 12:02:31

--- In boost_at_y..., "Peter Dimov" <pdimov_at_m...> wrote:
> From: <scleary_at_j...>
> > Like you, I'm more inclined to just declare global resources as
> > objects, and just create instances of them in main(). I have
never used
> an
> > actual Singleton except as mentioned above.
> I have encountered the need to solve the init order problem many
times. I
> automatically type
> std::list<win32::dialog*> & instances()
> {
> static std::list<win32::dialog*> i;
> return i;
> }
> > So, maybe we don't need one after all?
> _I_ don't need one provided that I can (easily) make the above
thread safe.
> This is not yet covered by Boost to the extent that I'd have liked.

Yup. BTW:
(it would be nice to have some standard keyword to
control thread-safety/sharing; fast/non-shared/
non-synchronized by default, IMHO)


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