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

2024-10-26


2646. Defaulted special member functions

Section: 9.5.2  [dcl.fct.def.default]     Status: C++23     Submitter: US     Date: 2022-11-03

P2720R0 comment US 20-052

[Accepted as a DR at the November, 2022 meeting.]

The exposition in terms of F1 and F2 as well as T1 and T2 is confusing.

Possible resolution:

Change in 9.5.2 [dcl.fct.def.default] paragraph 2 as follows:

An explicitly defaulted special member function F1 with type T1 is allowed to differ from the corresponding special member function F2 with type T2 that would have been implicitly declared, as follows: If T1 the type of F1 differs from T2 the type of F2 in a way other than as allowed by the preceding rules, then: