We can refer to the Draft C++14 standard for reference.
This is covered in section 8.5.1
Aggregates which gives us the following definition:
An aggregate is an array or a class (Clause 9) with no user-provided constructors (12.1), no private or protected non-static data members (Clause 11), no base classes (Clause 10), and no virtual functions (10.3).
The only change is now adding in-class member initializers does not make a class a non-aggregate. So the following example from C++11 aggregate initialization for classes with member in-place initializers:
struct A
{
int a = 3;
int b = 3;
};
was not an aggregate in C++11 but it is in C++14. This change is covered in N3605: Member initializers and aggregates, which has the following abstract:
Bjarne Stroustrup and Richard Smith raised an issue about aggregate initialization and member-initializers not working together. This paper proposes to fix the issue by adopting Smith's proposed wording that removes a restriction that aggregates can't have member-initializers.
The definition for POD(plain old data) struct is covered in section 9
Classes which says:
A POD struct110 is a non-union class that is both a trivial class and a standard-layout class, and has no non-static data members of type non-POD struct, non-POD union (or array of such types). Similarly, a POD union is a union that is both a trivial class and a standard-layout class, and has no non-static data members of type non-POD struct, non-POD union (or array of such types). A POD class is a class that is either a POD struct or a POD union.
which is the same wording as C++11.
As noted in the comments pod relies on the definition of standard-layout and that did change for C++14 but this was via defect reports that were applied to C++14 after the fact.
There were three DRs:
So standard-layout went from this Pre C++14:
A standard-layout class is a class that:
- (7.1) has no non-static data members of type non-standard-layout class (or array of such types) or reference,
- (7.2) has no virtual functions ([class.virtual]) and no virtual base classes ([class.mi]),
- (7.3) has the same access control (Clause [class.access]) for all non-static data members,
- (7.4) has no non-standard-layout base classes,
- (7.5) either has no non-static data members in the most derived class and at most one base class with non-static data members, or has no base classes with non-static data members, and
- (7.6) has no base classes of the same type as the first non-static data member.109
To this in C++14:
A class S is a standard-layout class if it:
- (3.1) has no non-static data members of type non-standard-layout class (or array of such types) or reference,
- (3.2) has no virtual functions and no virtual base classes,
- (3.3) has the same access control for all non-static data members,
- (3.4) has no non-standard-layout base classes,
- (3.5) has at most one base class subobject of any given type,
- (3.6) has all non-static data members and bit-fields in the class and its base classes first declared in the same class, and
- (3.7) has no element of the set M(S) of types as a base class, where for any type X, M(X) is defined as follows.104 [ Note: M(X) is the set of the types of all non-base-class subobjects that may be at a zero offset in X. — end note ]
- (3.7.1) If X is a non-union class type with no (possibly inherited) non-static data members, the set M(X) is empty.
- (3.7.2) If X is a non-union class type with a non-static data member of type X0 that is either of zero size or is the first non-static data member of X (where said member may be an anonymous union), the set M(X) consists of X0 and the elements of M(X0).
- (3.7.3) If X is a union type, the set M(X) is the union of all M(Ui) and the set containing all Ui, where each Ui is the type of the ith non-static data member of X.
- (3.7.4) If X is an array type with element type Xe, the set M(X) consists of Xe and the elements of M(Xe).
- (3.7.5) If X is a non-class, non-array type, the set M(X) is empty.