This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: [PATCH] Add std::pointer_traits.


On 20 July 2010 11:33, Paolo Carlini wrote:
>
> Anyway, for sure this work should be absolutely invisible in C++03 mode.
> At some point, however, we'll have to figure out whether it's better to
> proceed in the current macro-based way, or just have separate C++03 and
> C++0x versions of the containers. Lately I'm thinking that everything
> considered - thus, not just the support for scoped allocators, but also
> the const_iterator signature changes to many member functions, etc - it
> can well make sense to simply split the two to separate header files.

I've been thinking the same, and also that we should consider putting
the C++0x versions in an inline namespace, so they mangle to a
different symbol, so that C++03 std::list and C++0x std::__cxx0x::list
can co-exist in the same programs and libraries.  I haven't had time
to experiment with that idea.


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