C++14 library functions

Paolo Carlini paolo.carlini@oracle.com
Fri Nov 2 11:30:00 GMT 2012


Hi,

On 11/02/2012 12:27 PM, 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.
>>
>> 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.
Right, I was about to reply the same. The job should be trivial, I can 
do that soon. Then, with the macro available, I guess we can protect the 
new code the usual way.

Paolo.



More information about the Libstdc++ mailing list