|
From: Luigi B. <lui...@gm...> - 2007-10-03 12:40:23
|
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
|