Title
When is uncaught_exception() true?
Status
nad
Section
14.6.3 [except.uncaught]
Submitter
Daveed Vandevoorde

Created on 1998-08-10.00:00:00 last changed 313 months ago

Messages

Date: 2004-11-07.00:00:00

The term "throw exception" seems to sometimes refer to an expression of the form "throw expr" and sometimes just to the "expr" portion thereof.

As a result it is not quite clear to me whether when "uncaught_exception()" becomes true: before or after the temporary copy of the value of "expr".

Is there a definite consensus about that?

Rationale: The standard is sufficiently clear; the phrase "to be thrown" indicates that the throw itself (which includes the copy to the temporary object) has not yet begun. The footnote in 14.6.2 [except.terminate] paragraph 1 reinforces this ordering.

See also issue 475.

History
Date User Action Args
1998-08-10 00:00:00admincreate