Safe static object initialization
#2
Mostly this project has in the past gone for option 2. Its only recently that we've started moving over to a third option which is newly safer in c++11. Create a free/static getter function with a local static variable. See cLogger::GetInstance() for an example.
Reply
Thanks given by:


Messages In This Thread
Safe static object initialization - by Woazboat - 04-30-2015, 03:41 AM
RE: Safe static object initialization - by worktycho - 04-30-2015, 04:04 AM
RE: Safe static object initialization - by xoft - 04-30-2015, 06:37 AM



Users browsing this thread: 1 Guest(s)