
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. -- sashan http://sashan.netfirms.com -------------------------------------------------- Brain: Here we are, Pinky--at the dawn of time! Pinky: Narf, Brain. Wake me at the noon of time.

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
participants (2)
-
Fredrik Blomqvist
-
sashan