[ quantlib-Patches-3047353 ] Fix for Intel C++ Compiler

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ quantlib-Patches-3047353 ] Fix for Intel C++ Compiler

SourceForge.net
Patches item #3047353, was opened at 2010-08-17 19:16
Message generated for change (Comment added) made by renorm
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=312740&aid=3047353&group_id=12740

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: renorm (renorm)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix for Intel C++ Compiler

Initial Comment:
Singleton pattern doesn't work with Intel's C++ compiler. The cause is the static variable which can't be properly accessed from different translation units. The attached file shows a possible solution. It uses static const pointer to the map of instances.

----------------------------------------------------------------------

>Comment By: renorm (renorm)
Date: 2010-08-18 09:15

Message:
Fixed Singleton for Intel C++ compiler

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=312740&aid=3047353&group_id=12740

------------------------------------------------------------------------------
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