"Magic static" singleton crashing when referenced in static destruction phase of another translation unit "Magic static" singleton crashing when referenced in static destruction phase of another translation unit multithreading multithreading

"Magic static" singleton crashing when referenced in static destruction phase of another translation unit


"Magic statics" were not implemented in the version of Visual Studio you were using. They were first implemented in Visual Studio 2015.

https://msdn.microsoft.com/en-us/library/hh567368.aspx