[PATCH] libstdc++: add a constexpr macro for C++26

Giuseppe D'Angelo giuseppe.dangelo@kdab.com
Wed Jan 8 10:57:32 GMT 2025


On 08/01/2025 11:49, Jakub Jelinek wrote:
>>   
>> +#ifndef _GLIBCXX26_CONSTEXPR
>> +# if __cplusplus >= 202303L
> Shouldn't that be 202400L instead?  I mean that is what
> -std=c++26/-std=gnu++26 predefines and has been historically what we've been
> using for next version.
> I think clang++ also predefines 202400L.

Fair enough, GCC documentation simply says "an unspecified value 
strictly larger than 202302L for the experimental languages enabled by 
-std=c++26 and -std=gnu++26", so I picked ... a value larger than 
202302L. I can certainly change it for the historical reason, just let 
me know.

-- 
Giuseppe D'Angelo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4244 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20250108/d1815e3d/attachment.p7s>


More information about the Libstdc++ mailing list