Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/piecewiseyoyinflationcurve-compilation-error-using-MS-VC9-2008-tp12640p12644.html
On Fri, 2009-02-20 at 16:44 +0100, Ferdinando Ametrano wrote:
> Compiling...
> yoycapfloortermpricesurface.cpp
> .\ql/termstructures/inflation/piecewiseyoyinflationcurve.hpp(127) :
> error C2059: syntax error : '<'
> .\ql/termstructures/inflation/piecewiseyoyinflationcurve.hpp(130)
> : see reference to class template instantiation
> 'QuantLib::PiecewiseYoYInflationCurve<Interpolator,Bootstrap,Traits>'
> being compiled
> .\ql/termstructures/inflation/piecewiseyoyinflationcurve.hpp(127) :
> error C2238: unexpected token(s) preceding ';'
>
> no problem using VC8
Go figure... We can only try to move stuff around and see if it's more
digestible. Try replacing the offending line
friend class Bootstrap<this_curve>;
with
typedef typename Bootstrap<this_curve> bootstrapper;
friend class bootstrapper;
Luigi
--
The First Rule of Optimization: Don't do it.
The Second Rule of Optimization (For experts only): Don't do it yet.
-- Michael Jackson
------------------------------------------------------------------------------
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