|
From: Dominick S. <djs...@ea...> - 2007-12-15 23:10:25
|
Ferdinando Ametrano wrote:
> \ql/utilities/tracing.hpp(66) : error C2990: 'QuantLib::Singleton' :
> non-class template has already been declared as a class template
> .\ql/patterns/singleton.hpp(53) : see declaration of 'QuantLib::Singleton'
>
> I don't know how to solve this error, but if someone has a patch we
> might easily add VC9 support
>
> ciao -- Nando
>
>
I commented out the friend part like this:
class Tracing : public Singleton<Tracing> {
// friend class Singleton<Tracing>;
private:
Tracing();
This permitted compilation under VC90 w/Windows Vista, and some of the
test programs seem
to run fine. Can somebody comment on why the friend declaration is
needed here? Doesn't
this permit an interface to access the internals of the logic that it is
supposed to encapsulate/hide
via the "curiously recurring pattern"?
An unrelated question: how is QuantLib-0.9.0.tar.gz made from the SVN
repository? I
am seeing different behavior if I use the preliminary tarball vs
download from the 090 SVN branch.
Thanks,
Dominick
|