Re: [PATCH] libstdc++: implement constexpr memory algorithms

2025-02-26 Thread Giuseppe D'Angelo
On 26/02/2025 16:22, Jonathan Wakely wrote: Clang 17/18 rejects 'constexpr' on non-template functions that use (non-constexpr) placement new but accepts it on templates (silently dropping constexpr at instantiation time):https://godbolt.org/z/Tqnvc1f1W So it seems Clang 17/18 behavior is consiste

Re: [PATCH] libstdc++: implement constexpr memory algorithms

2025-02-26 Thread Jonathan Wakely
lo, > > > > > > > > the attached patch implements the C++26 papers that add `constexpr` to > > > > the > > > > specialized memory algorithms (the uninitialized_* family). Tested on > > > > x86-64 > > > > Linux. > > > >

Re: [PATCH] libstdc++: implement constexpr memory algorithms

2025-02-26 Thread Patrick Palka
expr` to the > > > specialized memory algorithms (the uninitialized_* family). Tested on > > > x86-64 > > > Linux. > > > > > > Thank you, > > > -- > > > Giuseppe D'Angelo > > > > > > > > Subject: [PATCH

Re: [PATCH] libstdc++: implement constexpr memory algorithms

2025-02-25 Thread Jonathan Wakely
ers that add `constexpr` to the > > > specialized memory algorithms (the uninitialized_* family). Tested on > > > x86-64 > > > Linux. > > > > > > Thank you, > > > -- > > > Giuseppe D'Angelo > > > > > > >

Re: [PATCH] libstdc++: implement constexpr memory algorithms

2025-02-25 Thread Jonathan Wakely
_* family). Tested on x86-64 > > Linux. > > > > Thank you, > > -- > > Giuseppe D'Angelo > > > > > Subject: [PATCH] libstdc++: implement constexpr memory algorithms > > > > This commit adds support for C++26's constexpr specialized memory >

Re: [PATCH] libstdc++: implement constexpr memory algorithms

2025-02-25 Thread Giuseppe D'Angelo
Thank you, -- Giuseppe D'Angelo Subject: [PATCH] libstdc++: implement constexpr memory algorithms This commit adds support for C++26's constexpr specialized memory algorithms, introduced by P2283R2, P3508R0, P3369R0. The uninitialized_default, value, copy, move and fill algorithms a

Re: [PATCH] libstdc++: implement constexpr memory algorithms

2025-02-20 Thread Patrick Palka
Angelo > > Subject: [PATCH] libstdc++: implement constexpr memory algorithms > > This commit adds support for C++26's constexpr specialized memory > algorithms, introduced by P2283R2, P3508R0, P3369R0. > > The uninitialized_default, value, copy, move and fill algorithms

[PATCH] libstdc++: implement constexpr memory algorithms

2025-02-16 Thread Giuseppe D'Angelo
x27;Angelo Date: Sun, 16 Feb 2025 19:37:07 +0100 Subject: [PATCH] libstdc++: implement constexpr memory algorithms This commit adds support for C++26's constexpr specialized memory algorithms, introduced by P2283R2, P3508R0, P3369R0. The uninitialized_default, value, copy, move and fill