|
From: Luigi B. <lui...@gm...> - 2008-02-06 14:18:56
|
On Wed, 2008-02-06 at 05:07 -0800, na...@us... wrote: > Revision: 14284 > http://quantlib.svn.sourceforge.net/quantlib/?rev=14284&view=rev > Author: nando > Date: 2008-02-06 05:07:00 -0800 (Wed, 06 Feb 2008) > > Log Message: > ----------- > increased error messages' information > > @@ -97,7 +97,7 @@ > // 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"); > > // setup instruments > for (Size i=0; i<n; ++i) { Shouldn't the above be io::ordinal(i+1)? (So that the first instrument is reported as "1st" and not as "0th"...) Luigi -- The surest way to make a monkey of a man is to quote him. -- Robert Benchley |