Login  Register

Re: C++ help needed: singleton.hpp

Posted by Luigi Ballabio on Nov 02, 2007; 5:01pm
URL: http://quantlib.414.s1.nabble.com/Re-C-help-needed-singleton-hpp-tp9846p9849.html


On Sun, 2007-10-14 at 09:41 +0200, Klaus Spanderen wrote:
> 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.

Hmm. We might use the preprocessor to define the inline declaration
conditional to that particular compiler and option---I'd like to keep it
non-inline when possible, since inlining it might give problems on other
compilers. What do you think?

Later,
        Luigi


--

There is no such thing as public opinion. There is only published
opinion.
-- Winston Churchill



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