Hi,
I saw this comment and read the code for curiosity:
for (; cf>=leg.begin() && (*cf)->date()==paymentDate; --cf)
my question is
is it legal to decrement an iterator when it is at .begin()?
can this ever be false: "cf>=leg.begin()"?
it reminds me the trick to do a backward for loop with a size_t.
or maybe it is just nonsense...
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev