Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/piecewiseyoyinflationcurve-compilation-error-using-MS-VC9-2008-tp12640p12642.html
On Wed, 2009-02-25 at 10:40 +0100, Andreas Spengler wrote:
> The SUN compiler does not understand friend declarations using templated
> classes.
>
> A work-around that compiles, strangely enough, is to remove the "class" in
>
> friend class Bootstrap<this_curve>;
>
>
> I don't know whether you want to put this in the repository, though ;-)
Only conditionally... Let's try to turn this into a configure test.
I've stripped the guilty file to a minimum and I'm attaching it to this
post. Can you check that if you run
g++ -c test.cpp
(or whatever your C++ compiler is called) it does NOT compile, but it
does when you remove the "class" keyword?
Thanks,
Luigi
P.S. Another try: does the original file compile if you keep the
"class", but replace this_curve in the friend declaration with the full
type? (Piecewise...<Interpolation,etc.etc>)
Luigi
--
Newton's Law of Gravitation:
What goes up must come down. But don't expect it to come down
where you can find it. Murphy's Law applies to Newton's.
------------------------------------------------------------------------------
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