On Thu, Feb 13, 2014 at 3:57 PM, Nick Rudnick <nick.rudnick@gmail.com> wrote:
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 – isYou're catching all exceptions so there are no "unexpected" ones to invoke myUnexpected on.
std::set_unexpected (myUnexpected);throw runtime_error("OOOPS...");
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 associatesunix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net