This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-11-11


2098. Is uncaught_exceptions() per-thread?

Section: 14.6.3  [except.uncaught]     Status: CD4     Submitter: Ville Voutilainen     Date: 2015-03-14

[Adopted at the February, 2016 meeting.]

The current specification of std::uncaught_exceptions() (14.6.3 [except.uncaught] paragraph 1) does not, but should, state that it is the number of uncaught exceptions in the current thread.

Proposed resolution (September, 2015):

Change 14.6.3 [except.uncaught] paragraph 1 as follows:

...The function std::uncaught_exceptions() (17.9.6 [uncaught.exceptions]) returns the number of uncaught exceptions in the current thread.