diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2025-03-05 14:34:41 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2025-03-05 17:59:18 +0100 |
commit | 24ea4539300d4926d9f073822e68f0d2f369452d (patch) | |
tree | 6de6fef507669e178f0157fa3ba7de119adaebb6 /libstdc++-v3/testsuite/std/ranges | |
parent | 7e576d5b64ae92432fc2749b8f66105cee8db356 (diff) | |
download | gcc-24ea4539300d4926d9f073822e68f0d2f369452d.zip gcc-24ea4539300d4926d9f073822e68f0d2f369452d.tar.gz gcc-24ea4539300d4926d9f073822e68f0d2f369452d.tar.bz2 |
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 the same statement.
Amends r15-7708-gff43f9853d3b10.
libstdc++-v3/ChangeLog:
* include/bits/stl_algo.h (__stable_sort): Use if consteval
instead of is_constant_evaluated.
Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
Diffstat (limited to 'libstdc++-v3/testsuite/std/ranges')
0 files changed, 0 insertions, 0 deletions