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

2023-01-15


1123. Destructors should be noexcept by default

Section: 7.6.2.7  [expr.unary.noexcept]     Status: C++11     Submitter: FI     Date: 2010-08-02

[Voted into the WP at the November, 2010 meeting as paper N3204.]

N3092 comment FI 17

Destructors should by default be noexcept. Such a rule should be obeyed even for cases where a destructor is defaulted. Then a throwing destructor would need to be declared noexcept(false), and the resulting code breakage is acceptable.

Notes from the August, 2010 meeting:

CWG agreed with the suggested direction.

(Duplicate of issue 1147.)