Safe static object initialization
#4
Hello, welcome to the forum Smile

The local static variable is still not safe in MSVC2013, since it doesn't implement "magic statics" yet; it is finally available in MSVC2015. Still, it is the best option out there I guess.

Or maybe the best option would be to get rid of the class altogether. It is poorly documented, no-one really knows what it does, exactly, and it is only used in a few places; as STR already said, we have a newer class for the kind of work this class was expected to perform, with a much improved interface and cleaner documentation.
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 xoft - 04-30-2015, 06:37 AM



Users browsing this thread: 4 Guest(s)