Re:C++11: A generic singleton
by 02f39nrca on Thursday August 30, 2012 @05:48PM
(#4457042)
Experience shows the singleton pattern is more trouble than it's worth. Explicitly initialise shared resources in one thread either from main, or if you're writing a shared library, the explicit initialisation function you'll have to add anyway if the library is properly designed.
[ Parent
| on HN ]
There are no comments on this comment yet.