|
From: Andreas S. <an...@sp...> - 2009-02-20 17:01:56
|
Guys, sorry for entering this thread, too, but > Try replacing the offending line > > friend class Bootstrap<this_curve>; > > with > > typedef typename Bootstrap<this_curve> bootstrapper; > friend class bootstrapper; Compiling the "Bond" example breaks in exactly the same line with SUN CC: "../../ql/termstructures/yield/piecewiseyieldcurve.hpp", line 149: Error, notempname: A class template name was expected instead of QuantLib::Bootstrap<QuantLib::Curve>. "Bonds.cpp", line 214: Where, temwhilespec: While specializing "QuantLib::PiecewiseYieldCurve<QuantLib::Discount, QuantLib::LogLinear, QuantLib::IterativeBootstrap<QuantLib::Curve>>". "Bonds.cpp", line 214: Where, temspecend: Specialized in non-template code. "../../ql/termstructures/yield/piecewiseyieldcurve.hpp", line 149: Error, nofriendfield: A "friend" declaration must specify a class or function. "Bonds.cpp", line 214: Where, temwhilespec: While specializing "QuantLib::PiecewiseYieldCurve<QuantLib::Discount, QuantLib::LogLinear, QuantLib::IterativeBootstrap<QuantLib::Curve>>". "Bonds.cpp", line 214: Where, temspecend: Specialized in non-template code. 2 Error(s) and 6 Warning(s) detected. Changing to the above didn't help... Rgds, Andreas |