Affected subclause: [dcl.init.list]
Change: Narrowing restrictions in aggregate initializers
. Effect on original feature: Valid C++ 2003 code may fail to compile in this revision of C++
. For example:
int x[] = { 2.0 };
This code is valid in C++ 2003 but invalid in this
revision of C++ because
double to
int is a narrowing
conversion
.