#50 Fix for Intel C++ Compiler

open
nobody
None
5
2010-08-17
2010-08-17
renorm
No

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.

Discussion

  • renorm
    renorm
    2010-08-18

    the whole file with fixes

     
    Attachments
  • renorm
    renorm
    2010-08-18

    Fixed Singleton for Intel C++ compiler

     
  • renorm
    renorm
    2010-09-02

    doesn't use scoped_ptr

     
    Attachments