Title
Value-initialization of aggregates
Status
nad
Section
9.4 [dcl.init]
Submitter
Alisdair Meredith

Created on 2012-10-21.00:00:00 last changed 140 months ago

Messages

Date: 2013-04-15.00:00:00

Rationale (April, 2013):

There is a distinction in the core language between aggregate initialization and value initialization. For example, a class with a deleted default constructor can be list-initialized via aggregate initialization but not value-initialized.

Date: 2022-11-20.07:54:16

The resolution of issue 1301 changed the status of T{}, where T is an aggregate, from being value-initialization to being aggregate initialization. This change breaks the description of DefaultConstructible in 16.4.4.2 [utility.arg.requirements] Table 19. LWG has opened an issue for this (2170) but would like CWG to consider a core approach that would categorize T{} as value initialization, even when T is an aggregate.

History
Date User Action Args
2013-05-03 00:00:00adminsetmessages: + msg4441
2013-05-03 00:00:00adminsetstatus: open -> nad
2012-10-21 00:00:00admincreate