|
From: Luigi B. <lui...@gm...> - 2010-09-01 14:20:22
|
On Wed, 2010-09-01 at 05:24 -0500, Kakhkhor Abdijalilov wrote: > I think it is broken just like the design using scoped_ptr or the > original design. Ok. One way or the other, Singletons are all broken. But trying to avoid breaking interfaces for the time being, and in "normal" usage (i.e., no Singletons initialized before main() starts): was it needed to put the map into a scoped_ptr, as in: private: static const boost::scoped_ptr<map_type> instances_; or would the following work, too? private: static map_type instances_; Luigi -- Though this be madness, yet there is method in't. -- Hamlet, Act II, scene II |