|
From: Ferdinando A. <na...@am...> - 2008-02-06 15:25:48
|
On Wed, Feb 6, 2008 at 3:18 PM, Luigi Ballabio <lui...@gm...> wrote: > > // check that there is no instruments with invalid quote > > for (Size i=0; i<n; ++i) > > QL_REQUIRE(ts_->instruments_[i]->quoteIsValid(), > > - "instrument with invalid quote"); > > + io::ordinal(i) << " instrument has an invalid quote"); > > > Shouldn't the above be io::ordinal(i+1)? (So that the first instrument > is reported as "1st" and not as "0th"...) You're right: I love your picky attitude :-) In the current library io::ordinal was used in the i+1 fashion almost nowhere... so I went ahead and fix it: http://quantlib.svn.sourceforge.net/viewvc/quantlib?view=rev&revision=14292 ciao -- Nando |