Login  Register

Re: C++ help needed: singleton.hpp

Posted by Klaus Spanderen-2 on Oct 14, 2007; 8:41am
URL: http://quantlib.414.s1.nabble.com/Re-C-help-needed-singleton-hpp-tp9846.html

Hi

I'm having this problem using Visual Studio Express 2005.

I nailed it down to a 15 line program (attached to this email), which
generates to wrong results when compiled within a separate Visual Studio
solution _and_ the option

Common Language Runtime-Support (/clr)

is switched on. Everything is okay as soon as I'm switching this option off or
declaring

inline T& Singleton<T>::instance() { ..}

instead of

T& Singleton<T>::instance() { }


cheers

--
Klaus Spanderen
Ludwig Erhard Str. 12
48734 Reken (Germany)
EMail: [hidden email] (remove NOSPAM from the address)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev

EquityOption.cpp (1K) Download Attachment