|
From: SourceForge.net <no...@so...> - 2010-08-18 13:15:01
|
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 |