|
Boost Users : |
From: Fredrik Blomqvist (yg-boost-users_at_[hidden])
Date: 2003-05-21 16:50:37
sashan wrote:
> Is there construct that supports the singleton idea in boost? I've
> searched through the docs but may have missed it. I find it odd that
> it's not there.
There's no official singleton in the boost lib (yet). AFAIK it's simply
because failure to reach an agreement on what is the "proper" singleton
impl.
But you can always check the yahoo file-area, should be a couple of informal
singleton proposals there.
Otherwise I would recommend you to look at the policy-based singletons part
of Loki (see 'Modern C++ Design' by Alexandrescu) for a high quality
implementation. Especially if you want a thorough discussion of all the
subtleties involved.
/Fredrik
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net