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

2025-01-08 Thread Jonathan Wakely
On Wed, 8 Jan 2025 at 11:00, Jakub Jelinek wrote: > > On Wed, Jan 08, 2025 at 11:57:32AM +0100, Giuseppe D'Angelo wrote: > > 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

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

2025-01-08 Thread Jakub Jelinek
On Wed, Jan 08, 2025 at 11:57:32AM +0100, Giuseppe D'Angelo wrote: > 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 histo

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

2025-01-08 Thread Giuseppe D'Angelo
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 202

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

2025-01-08 Thread Jakub Jelinek
5daf671c6da929 Mon Sep 17 00:00:00 2001 > From: Giuseppe D'Angelo > Date: Wed, 1 Jan 2025 12:12:29 +0100 > Subject: [PATCH] libstdc++: add a constexpr macro for C++26 > > Following the precedent of _GLIBCXX20_CONSTEXPR. > It will be used to decorate some functions which hav

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

2025-01-08 Thread Giuseppe D'Angelo
2:29 +0100 Subject: [PATCH] libstdc++: add a constexpr macro for C++26 Following the precedent of _GLIBCXX20_CONSTEXPR. It will be used to decorate some functions which have been made constexpr in C++26 (for instance P2562R1, and maybe P3508R0, P3369R0, ...). libstdc++-v3/ChangeLog: * include/bits