This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: PR 25137: moving -Wmissing-braces to -Wextra?
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: Paolo Carlini <paolo dot carlini at oracle dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>, mark at codesourcery dot com, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Tue, 17 Nov 2009 22:32:43 +0000
- Subject: Re: RFC: PR 25137: moving -Wmissing-braces to -Wextra?
- References: <4B02E367.40800@oracle.com> <mcr1vjwolhl.fsf@dhcp-172-17-9-151.mtv.corp.google.com>
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.