
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 caught. 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@roedu.net "Linux is obsolete" -- AST