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, the following code is valid in C++ 2003 but invalid in this
revision of C++ because double to int is a narrowing
conversion:
int x[] = { 2.0 };