Boost logo

Boost Users :

Subject: [Boost-users] Best practice for singletons?
From: Chris Cleeland (chris.cleeland_at_[hidden])
Date: 2012-04-11 11:05:51


There are many ways to skin the singleton cat. In fact, boost itself
sports several--some publicly exposed, some in "detail".

I'm wondering if any one or two of these might be considered to be the
current state-of-the-art with regard to implementing a singleton. I can
certainly "roll my own" as I've done in the past, but if I can stand on the
shoulders of giants and since I already have an accepted dependency on
boost, I definitely prefer that.

I do not wish to engage in any religious wars regarding singletons--I'm
aware that they have their evils.

Thanks much!

-- 
Chris Cleeland


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