Title
Is std::initializer_list an aggregate?
Status
nad
Section
9.4.5 [dcl.init.list]
Submitter
Daniel Krügler

Created on 2011-08-21.00:00:00 last changed 156 months ago

Messages

Date: 2012-02-15.00:00:00

Rationale (February, 2012):

The presence of the constructor declaration in 17.10 [support.initlist] is sufficient to establish that std::initializer_list is not an aggregate.

Date: 2022-11-20.07:54:16

The Standard does not specify whether std::initializer_list may be an aggregate or not. Strictly speaking, the order of the bullets in 9.4.5 [dcl.init.list] paragraph 3 depends on the answer. The existence of a constructor declaration in 17.10 [support.initlist] suggests that it is not an aggregate but does not say so definitively.

History
Date User Action Args
2012-02-27 00:00:00adminsetmessages: + msg3847
2012-02-27 00:00:00adminsetstatus: open -> nad
2011-08-21 00:00:00admincreate