Created on 2015-04-14.00:00:00 last changed 107 months ago
Notes from the May, 2015 meeting:
This will be handled editorially; the status has been set to "review" to check that the editorial change has been made.
The following example illustrates an incompatibility between C++11 and C++14:
struct S {
int m = 1;
}; // C++11: S is non-aggregate
// C++14: S is AGGREGATE
struct X {
operator int();
operator S();
};
int main() {
X a{};
S b{a}; // C++11: valid, copy constr S(a.operator S()) is called here
// C++14: valid, aggregate initialization { a.operator int() }
printf("%d\n", b.m);
}
This should be documented in Annex Clause Annex C [diff].
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2017-02-06 00:00:00 | admin | set | status: review -> cd3 |
| 2015-05-25 00:00:00 | admin | set | messages: + msg5479 |
| 2015-04-14 00:00:00 | admin | create | |