RFC: PR 25137: moving -Wmissing-braces to -Wextra?

Jonathan Wakely jwakely.gcc@gmail.com
Tue Nov 17 22:33:00 GMT 2009


2009/11/17 Ian Lance Taylor:
>
> I don't really understand how this interacts with std::tr1:array,
> though.

For it to be a more convenient drop-in replacement for builtin arrays
you want to initialise tr1::array like so:

std::tr1::array<int> a = { 0, 1, 2 };

rather than

std::tr1::array<int> a = { { 0, 1, 2 } };

but the former gives the warning.



More information about the Gcc mailing list