This is the mail archive of the gcc-patches@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: C++ PATCH to implement initializer lists proposal (n2672)


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.


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