On Fri, 2007-09-21 at 21:24 +0200, Klaus Spanderen wrote:
> in ql/patterns/singleton.hpp
>
> 68 template <class T>
> 69 T& Singleton<T>::instance() {
> IMO this function should be declared as inline function to avoid linker
> problem.
>
> 69 inline T& Singleton<T>::instance() {
>
> Background: I'd problems with this function when linking QL under Windows to a
> project without including the QL project into my project (simply linked
> static QL library).
Klaus,
I'm a bit afraid that declaring it inline might play badly with the
static map. What kind of linker problem did you have?
Luigi
--
This gubblick contains many nonsklarkish English flutzpahs, but the
overall pluggandisp can be glorked from context.
-- David Moser
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev