Re: test suite fails when run in debug mode but is successful when run in release mode
Posted by
Ferdinando M. Ametrano-3 on
Aug 01, 2011; 10:29am
URL: http://quantlib.414.s1.nabble.com/test-suite-fails-when-run-in-debug-mode-but-is-successful-when-run-in-release-mode-tp13557p13561.html
On Fri, Jul 29, 2011 at 5:36 PM, Luigi Ballabio
<
[hidden email]> 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
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev