This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]