up to now we used placement into a static buffer. While this approach is somewhat cool, I can't see much practical benefit anymore, given that we use an elaborate framework which rules out the use of Meyers Singleton. And given that with C++11 we're able just to use std::unique_ptr to do all work. Moreover, the intended configurability will become much simpler by relying on a _closure_ to produce a heap-allocated instance for all cases likewise. The only possible problem I can see is that critical infrastructure might rely on failsafe creation of some singleton. Up to now this scenario remains theoretical however |
||
|---|---|---|
| .. | ||
| clang-static-init-1.cpp | ||
| clang-static-init-2.cpp | ||
| clang-static-init.hpp | ||
| crash_gdb_jessie-2015-08.sh | ||
| DIR_INFO | ||
| SConscript | ||
| try.cpp | ||