Affected subclause: [dcl.init.aggr]
Change: Classes with default member initializers can be aggregates
. Rationale: Necessary to allow default member initializers to be used
by aggregate initialization
. Effect on original feature: Valid C++ 2011 code may fail to compile or may change meaning in this revision of C++
. [
Example 2:
struct S {
int m = 1;
};
struct X {
operator int();
operator S();
};
X a{};
S b{a};
—
end example]