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

2025-10-24


3089. const-default-constructible improperly handles std::meta::info

Section: 9.5.1  [dcl.init.general]     Status: tentatively ready     Submitter: US     Date: 2025-10-01

N5028 comment US 39-076

A class that contains only std::meta::info data members, or arrays thereof, should be const-default-constructible.

Proposed resolution (approved by CWG 2025-10-24):

Change in 9.5.1 [dcl.init.general] paragraph 8 as follows (add bullets):

A class type cv T is const-default-constructible if If a program calls for the default-initialization of an object of a const-qualified type T, T shall be std::meta::info or a const-default-constructible class type, or array thereof.