aboutsummaryrefslogtreecommitdiff
path: root/gcc/function-tests.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-06-14 12:25:43 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-06-14 14:04:45 +0100
commite2c79b968ff95421c31a5a9a1b80b11321fe70d2 (patch)
treedacfd8c42bfc427196f773c6952a30eda8507dde /gcc/function-tests.c
parenta893b26f7311fe65b604f12a8fa5d5d64f5454e2 (diff)
downloadgcc-e2c79b968ff95421c31a5a9a1b80b11321fe70d2.zip
gcc-e2c79b968ff95421c31a5a9a1b80b11321fe70d2.tar.gz
gcc-e2c79b968ff95421c31a5a9a1b80b11321fe70d2.tar.bz2
libstdc++: Change [cmp.alg] assertions to constraints
This moves the same_as<decay_t<_Tp>, decay_t<_Up>> checks from the [cmp.alg] function bodies into their constraints. Also add a test for the compare_xxx_order_fallback algorithms. libstdc++-v3/ChangeLog: * libsupc++/compare (__decayed_same_as): New helper concept. (strong_order, weak_order, partial_order): Constrain with new concept instead of using static_assert. (compare_strong_order_fallback, compare_weak_order_fallback) (compare_partial_order_fallback): Likewise. Do not deduce return types. Remove redundant if-constexpr checks. * testsuite/18_support/comparisons/algorithms/fallback.cc: New test.
Diffstat (limited to 'gcc/function-tests.c')
0 files changed, 0 insertions, 0 deletions