std::vector<boost::shared_ptr<CashFlow> > cfs = bond.cashflows();
for (std::size_t i=0; i<cfs.size(); ++i)
std::cout << cfs[i]->date() << " " << cfs[i]->amount() << std::endl;
I haven't tried to compile the above so there might be errors, but
that's the idea.
Luigi
On Tue, Aug 13, 2013 at 2:46 PM, André de Boer <
[hidden email]> wrote:
--
<
https://implementingquantlib.blogspot.com>
<
https://twitter.com/lballabio>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users