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

2024-08-20


2871. User-declared constructor templates inhibiting default constructors

Section: 11.4.5.2  [class.default.ctor]     Status: DR     Submitter: Jim X     Date: 2024-03-03

[Accepted as a DR at the June, 2024 meeting.]

(From submission #510.)

Subclause 11.4.5.2 [class.default.ctor] paragraph 1 does not, but should, consider user-declared constructor templates.

Proposed resolution (approved by CWG 2024-04-05):

Change in 11.4.5.2 [class.default.ctor] paragraph 1 as follows:

... If there is no user-declared constructor or constructor template for class X, a non-explicit constructor having no parameters is implicitly declared as defaulted (9.5 [dcl.fct.def]). ...