From: dizzy (dizzy_at_[hidden])
Date: 2008-05-02 03:14:49
On Thursday 01 May 2008 13:23:35 James Talbut wrote:
> By calling std::terminate in the catch handler we lose the JIT debugger
> - and thus information about what the exception is that we haven't
> Without the catch the process is still going to be killed, so what's the
> benefit of having that?
Probably because not all implementations can allow threads to exit properly
with an exception (since that is an area completely uncovered by the current
C++ standard, along with threading in general). But I agree, that where
possible it should not have a catch(...) and it should behave like exiting
from main() with an exception behaves (and if your implementation does not
make this behaviour the same then bad luck).
-- Mihai RUSU Email: dizzy_at_[hidden] "Linux is obsolete" -- AST
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk