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

2024-03-20


1912. exception-specification of defaulted function

Section: 9.5.2  [dcl.fct.def.default]     Status: CD5     Submitter: Ville Voutilainen     Date: 2014-04-10

[Accepted at the February, 2019 meeting as part of paper P1286R2.]

The current rules requiring a defaulted member function to have an exception-specification compatible with that of the implicitly-declared function are overly constraining. It should be possible, for example, to specify that a defaulted move constructor will be non-throwing, based on knowledge available to the programmer, even if the implicitly-declared constructor would be throwing.

Rationale (June, 2014):

This suggested extension should be investigated by EWG before any action is taken.