Created on 2009-05-05.00:00:00 last changed 144 months ago
[Voted into WP at March, 2010 meeting.]
Proposed resolution (November, 2009):
Change 9.4.2 [dcl.init.aggr] paragraph 1 as follows:
An aggregate is an array or a class (Clause Clause 11 [class]) with no user-provided constructors (11.4.5 [class.ctor]), no private or protected non-static data members (Clause 11.8 [class.access]), no base classes (Clause 11.7 [class.derived]), and no virtual functions (11.7.3 [class.virtual]).
The current wording of 9.4.2 [dcl.init.aggr] paragraph 1 does not consider brace-or-equal-initializers on members as affecting whether a class type is an aggregate or not. Because in-class member initializers are essentially syntactic sugar for mem-initializers, and the presence of a user-provided constructor disqualifies a class from being an aggregate, presumably the same should hold true of member initializers.
|2010-03-29 00:00:00||admin||set||messages: + msg2711|
|2010-03-29 00:00:00||admin||set||status: tentatively ready -> cd2|
|2010-02-16 00:00:00||admin||set||messages: + msg2502|
|2010-02-16 00:00:00||admin||set||status: drafting -> tentatively ready|
|2009-08-03 00:00:00||admin||set||status: open -> drafting|