Skip to content
Snippets Groups Projects
Commit 904e41e5 authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Revert (but cleanup) SingletonHolder implementation

MSVC 2017 15.7 contains a bug where constant initialization no longer
takes place for objects with constructors marked constexpr such as
once_flag. This leaves once_flag susceptible to dynamic initialization
order problems and causes some singleton instances to be constructed
incorrectly. We put back our correct implementation (with some cleanup)
and await a fix from MS.
Refs #0
parent 85136f89
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment