diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-06-14 12:25:43 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-06-14 14:04:45 +0100 |
commit | e2c79b968ff95421c31a5a9a1b80b11321fe70d2 (patch) | |
tree | dacfd8c42bfc427196f773c6952a30eda8507dde /gcc/tree-ssa-loop-manip.c | |
parent | a893b26f7311fe65b604f12a8fa5d5d64f5454e2 (diff) | |
download | gcc-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/tree-ssa-loop-manip.c')
0 files changed, 0 insertions, 0 deletions