Re: fix for intel's compiler
Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/fix-for-intel-s-compiler-tp9222p9237.html
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.
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev