This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH to implement initializer lists proposal (n2672)
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 2 Jul 2008 22:41:03 +0200
- Subject: Re: C++ PATCH to implement initializer lists proposal (n2672)
- References: <486BA0D1.8070501@redhat.com>
Hi Jason,
This patch only includes one small piece of N2679, namely
map::insert(initializer_list) which I wanted to use for testing.
I'll go ahead and add the rest in a separate patch.
This is just great, but please try to stay to our current practice for
C++0x facilities (plenty of examples around): we do wrap everything in
__GXX_EXPERIMENTAL_CXX0X__. And std::initializer_list must be normally
uglified, thus single or double underscore at the beginning of each
name depending on each name (single for template arguments, double for
variables). About the inclusion of <initializer_list> itself, I would
probably just including it unconditionally and wrap everything inside
in __GXX_EXPERIMENTAL_CXX0X__, similarly to <bits/move.h>.
Anyway, that's just the way we normally deal with C++0x things, if you
want to concentrate on the code itself, we (libstdc++ people) can take
care of those trivial issues...
Paolo.