Posted by
Andreas Spengler-2 on
URL: http://quantlib.414.s1.nabble.com/piecewiseyoyinflationcurve-compilation-error-using-MS-VC9-2008-tp12640p12645.html
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
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev