Login  Register

Re: ql/cashflows/cashflows.cpp compile error

Posted by Sun, Xiuxin on Jul 29, 2008; 10:15am
URL: http://quantlib.414.s1.nabble.com/Pricing-volatility-surface-fast-tp6311p6314.html

Version : Sun C++ 5.7 it this version too old for QuantLib ?
 

-----Original Message-----
From: Luigi Ballabio [mailto:[hidden email]]
Sent: Tuesday, July 29, 2008 6:10 PM
To: Sun, Xiuxin [CMB-IT]
Cc: [hidden email]
Subject: Re: [Quantlib-users] ql/cashflows/cashflows.cpp compile error

On Tue, 2008-07-29 at 17:58 +0800, Sun, Xiuxin wrote:
> a compile error 'Error: Different types for "?:"
> (QuantLib::Settings::DateProxy& and const QuantLib::Date&).'
> at         Date d = (refDate==Date() ?
>                      Settings::instance().evaluationDate() :
>                      refDate);
> I find that return type from Settings::instance().evaluationDate() is
> DateProxy and different from Date, could someone give a clue ?

What compiler? It works with all common ones as DateProxy is implicitly
convertible to Date...

Luigi


--

These are my principles, and if you don't like them... Well, I have
others.
-- Groucho Marx



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users