Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/fix-for-intel-s-compiler-tp9222p9227.html
On Wed, 2010-09-01 at 05:24 -0500, Kakhkhor Abdijalilov wrote:
> I think it is broken just like the design using scoped_ptr or the
> original design.
Ok. One way or the other, Singletons are all broken. But trying to
avoid breaking interfaces for the time being, and in "normal" usage
(i.e., no Singletons initialized before main() starts): was it needed to
put the map into a scoped_ptr, as in:
private:
static const boost::scoped_ptr<map_type> instances_;
or would the following work, too?
private:
static map_type instances_;
Luigi
--
Though this be madness, yet there is method in't.
-- Hamlet, Act II, scene II
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev