Re: [PATCH] libstdc++: use if consteval in stable_sort

2025-03-05 Thread Jonathan Wakely
On Wed, 5 Mar 2025 at 13:44, Giuseppe D'Angelo wrote: > > Hi, > > I'm attaching a very small cleanup for constexpr std::stable_sort, using > `if consteval` instead of `__is_constant_evaluated` within a C++26 feature. OK for trunk, thanks. You can drop the Signed-off-by from the commit message now

[PATCH] libstdc++: use if consteval in stable_sort

2025-03-05 Thread Giuseppe D'Angelo
o Date: Wed, 5 Mar 2025 14:34:41 +0100 Subject: [PATCH] libstdc++: use if consteval in stable_sort This is a C++ >= 26 codepath for supporting constexpr stable_sort, so we know that we have if consteval available; it just needs protection with the feature-testing macro. Also merge the return in