If I have a C++11 program running two threads, and one of them throws an unhandled exception, what happens? Will the entire program die a fiery death? Will the thread where the exception is thrown die alone (and if so, can I obtain the exception in this case)? Something else entirely?
Share
Nothing has really changed. The wording in n3290 is:
The behavior of
terminatecan be customized withset_terminate, but:So the program exits in such a case, other threads cannot continue running.