|
From: Dave C. <to....@gm...> - 2008-02-04 04:20:11
|
Dominick Samperi <djsamperi <at> earthlink.net> writes: > I commented out the friend part like this: > class Tracing : public Singleton<Tracing> { > // friend class Singleton<Tracing>; > private: > Tracing(); > I also ran into this problem before seeing this thread. I worked around it by explicitly specifying the Quantlib namespace for the Singleton<Tracing> class as shown in the following diff: $ bzr diff tracing.hpp === modified file 'QuantLib-0.9.0/ql/utilities/tracing.hpp' --- QuantLib-0.9.0/ql/utilities/tracing.hpp 2008-02-03 22:41:13 +0000 +++ QuantLib-0.9.0/ql/utilities/tracing.hpp 2008-02-03 23:55:29 +0000 @@ -62,8 +62,8 @@ namespace detail { - class Tracing : public Singleton<Tracing> { - friend class Singleton<Tracing>; + class Tracing : public QuantLib::Singleton<Tracing> { + friend class QuantLib::Singleton<Tracing>; private: Tracing(); public: I think this preserves the exact meaning of the original code. - Dave |