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: C++14 library functions


On 2 November 2012 11:27, Marc Glisse wrote:
> On Fri, 2 Nov 2012, Chris Jefferson wrote:
>
>> n3421 ( http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3421.htm
>> ) fixes something which has always annoyed me (having to write
>> std::greater<int>, instead of just std::greater), and has been accepted into
>> the C++14 draft.

Indeed.

>> Would a patch adding this be accepted? Is there any standard on how to
>> mark such things up (a macro for C++14?), or just include it as is. It won't
>> break any existing code.
>
>
> There is already -std=c++1y, it could be made to define
> __GXX_EXPERIMENTAL_CXX1Y__ in c-family/c-cppbuiltin.c.

That's not the same thing. I believe C++14 would be TC2 (or whatever
the ISO name is these days) i.e. a "bug fix" release to C++11.  C++1y
will be a full new standard.

i.e. C++1y is to C++11 as C++11 is to C++98.

C++14 is to C++11 as C++03 is to C++98

We include all C++03 changes in -std=c++98 mode, we could just include
all C++14 changes in -std=c++11 mode, otherwise we'd need separate
macros for c++14 and c++1y


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