Login  Register

Re: Deprecated example in Bonds.cpp

Posted by Dirk Eddelbuettel on Mar 20, 2014; 11:56pm
URL: http://quantlib.414.s1.nabble.com/Deprecated-example-in-Bonds-cpp-tp15067p15084.html


On 18 March 2014 at 06:38, Dirk Eddelbuettel wrote:
|
| Hi Luigi,
|
| On 18 March 2014 at 11:20, Luigi Ballabio wrote:
| | Hi Dirk,
| |     it's not FixedRateBondHelper that is deprecated; it's just that
| | particular constructor of FittedBondDiscountCurve, which takes a
| | vector<shared_ptr<FixedRateBondHelper>> and now is superseded by the
| | one that takes a more general vector<shared_ptr<BondHelper>>.
|
| Sorry, that is what I meant.
|
| | You should be able to fix your code simply by changing the type of the
| | vector you're passing.
|
| I think I tried that.  I shall try again...

Gosh was that ever simple, but as usual I need three runs around the class
hierarchy until I realized that FixedRateBond is what I wanted...

Sent you a pull request updating the example.

Dirk

--
Dirk Eddelbuettel | [hidden email] | http://dirk.eddelbuettel.com

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev