CWG Issue 2871 (original) (raw)
This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 118f. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-11-07
2871. User-declared constructor templates inhibiting default constructors
Section: 11.4.5.2 [class.default.ctor]Status: CD7Submitter: Jim XDate: 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.6 [dcl.fct.def]). ...