Re: [QuantLib-svn] SF.net SVN: quantlib:[17435] trunk/QuantLib/ql

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Re-QuantLib-svn-SF-net-SVN-quantlib-17435-trunk-QuantLib-ql-tp13349.html

On Thu, 2010-10-21 at 16:14 +0000, [hidden email] wrote:

> Revision: 17435
>           http://quantlib.svn.sourceforge.net/quantlib/?rev=17435&view=rev
> Author:   nando
> Date:     2010-10-21 16:14:28 +0000 (Thu, 21 Oct 2010)
>
> Log Message:
> -----------
> added specialized handling of std::exception
>
> @@ -138,6 +142,9 @@
>                                    // case of bootstrapping
>              try {
>                  performCalculations();
> +            } catch (std::exception& e) {
> +                calculated_ = false;
> +                throw e;
>              } catch (...) {
>                  calculated_ = false;
>                  throw;

Nando,
        that's not specialized.  The two catch clauses do the same thing (i.e.,
the same exception that's caught is rethrown.)  Did you have any
problems with the previous version? What behavior did you see that you
were trying to fix?

Luigi


--

There are no rules of architecture for a castle in the clouds.
-- Gilbert K. Chesterton



------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev