
On Thu, Feb 13, 2014 at 3:57 PM, Nick Rudnick
std::set_unexpected (myUnexpected); try { throw runtime_error("OOOPS..."); } catch (int) { std::cerr << "caught int\n"; } catch (...) { std::cerr << "caught some other exception type\n"; }
still is the problem that the STDERR message of myUnexpected doesn't appear – is
You're catching all exceptions so there are no "unexpected" ones to invoke myUnexpected on.
there anywhere code applying what you told about?
I'm not sure what you're asking here. My suggestion was essentially to have something like the try/catch you wrote for testing above wrapped around whatever C++ code is throwing the exception, and invoke that try/catch via the FFI. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net