|
From: Ferdinando A. <na...@am...> - 2011-08-01 10:29:56
|
On Fri, Jul 29, 2011 at 5:36 PM, Luigi Ballabio
<lui...@gm...> wrote:
> Although we might have written the
> thing as:
>
> if (d >= discountCurve->referenceDate())
> results_.startDiscounts[i] = discountCurve_->discount(d);
> else
> results_.startDiscounts[i] = Null<DiscountFactor>();
>
> instead of:
>
> try {
> results_.startDiscounts[i] = discountCurve_->discount(d);
> } catch (...) {
> results_.startDiscounts[i] = Null<DiscountFactor>();
> }
>
> If you want to make the change and check that the test suite still
> works, by all means do (and send me the patch afterwards.)
done
|