[petsc-dev] CHKERRXX() to propagate errors from C

Jed Brown jedbrown at mcs.anl.gov
Wed Oct 19 15:31:44 CDT 2011


On Wed, Oct 19, 2011 at 15:09, Matthew Knepley <knepley at gmail.com> wrote:

> Aren't all those destructors called on return too?


True, catching within the same scope is much less interesting.

How about, the only way to get errors out of C++ constructors and overloaded
operators (if you use those) is via exceptions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20111019/64eaa777/attachment.html>


More information about the petsc-dev mailing list