Posted by
Luigi Ballabio on
Nov 06, 2007; 3:39pm
URL: http://quantlib.414.s1.nabble.com/Floating-RateBond-tp1544p1554.html
On Tue, 2007-11-06 at 07:17 -0800, amandine vincotte wrote:
> It prints: "Pricer not set".
> What does this mean?
Oh, right. In version 0.8, there was no default for coupon pricers.
You'll have to explicitly write how to evaluate the coupon.
After you create the bond and before calling NPV(), write
boost::shared_ptr<IborCouponPricer> pricer(new BlackIborCouponPricer);
setCouponPricer(FRN.cashflows(),pricer);
In next release, this will no longer be necessary.
Luigi
--
Ogden's Law:
The sooner you fall behind, the more time you have to catch up.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>
http://get.splunk.com/_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users