[PATCH] libstdc++: implement constexpr memory algorithms
Giuseppe D'Angelo
giuseppe.dangelo@kdab.com
Wed Feb 26 15:33:37 GMT 2025
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 consistent enough with P2448R2
>> that there should be no compatibility issues.
> Oh great, thanks for checking.
>
> EDG is also OK with it, I checked back to v6.0 from 2020.
>
> So making it unconditionally constexpr seems fine then.
Whops, sorry, missed this sub-thread (while replying to the other one).
Change of plans then, I'll amend and remove the ad-hoc constexpr macro.
Thanks,
--
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/20250226/7f51cf8a/attachment.p7s>
More information about the Libstdc++
mailing list