Re: C++/CLI problems

Posted by Nathan Abbott on
URL: http://quantlib.414.s1.nabble.com/C-CLI-problems-tp1583p1585.html

Thank you! That was the problem. I would have never found that out on my own. You just double the speed of my application. I appreciate your help very much.

On Nov 10, 2007 2:33 AM, Klaus Spanderen <[hidden email]> wrote:
Hi

might be that you have the same problem I had weeks ago. What worked out for
me was to declare

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

instead of

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

within the singelton.hpp file. Please see the thread
"C++ help needed: singleton.hpp"

in the QuantLib developer mailing list.

----snip--------snip--------snip--------snip--------snip----

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() { }

----snip--------snip--------snip--------snip--------snip------
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-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users