Title
exception-specification of defaulted function
Status
cd5
Section
9.5.2 [dcl.fct.def.default]
Submitter
Ville Voutilainen

Created on 2014-04-10.00:00:00 last changed 3 months ago

Messages

Date: 2014-06-15.00:00:00

Rationale (June, 2014):

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

Date: 2019-02-15.00:00:00

[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.

History
Date User Action Args
2022-04-28 06:49:37adminsetstatus: extension -> cd5
2014-07-07 00:00:00adminsetmessages: + msg5124
2014-07-07 00:00:00adminsetstatus: open -> extension
2014-04-10 00:00:00admincreate