|
From: Luigi B. <lui...@gm...> - 2010-08-17 14:18:34
|
On Sat, 2010-08-14 at 20:14 -0500, Kakhkhor Abdijalilov wrote: > Singleton pattern doesn't work with Intel's C++ compiler 11.1 on > Windows. I tested it both in 32 and 64 bit modes. > > When optimization is enabled (I used O3), each translation unit ends > up creating its own instance of Singleton. [...] Somehow static > non-const local variables and templates don't mix on ICC. I modified > the original implementation to uses const static variable and > everything worked well. The new implementation is attached. Ok, thanks. Luigi -- Ogden's Law: The sooner you fall behind, the more time you have to catch up. |