diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-01-29 13:56:49 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-01-29 13:56:49 +0000 |
commit | f214ffb336d582a66149068a2a96b7fcf395b5de (patch) | |
tree | 1cf499bba1c63de4edf244c2387cb30777eceaf8 /gcc | |
parent | 83b0201035cfdc1d4d80153f4e19ec98cf059941 (diff) | |
download | gcc-f214ffb336d582a66149068a2a96b7fcf395b5de.zip gcc-f214ffb336d582a66149068a2a96b7fcf395b5de.tar.gz gcc-f214ffb336d582a66149068a2a96b7fcf395b5de.tar.bz2 |
libstdc++: Simplify constraints on std::compare_three_way
The __3way_builtin_ptr_cmp concept can use three_way_comparable_with to
check whether <=> is valid. Doing that makes it obvious that the
disjunction on compare_three_way::operator() is redundant, because
the second constraint subsumes the first.
The workaround for PR c++/91073 can also be removed as that bug is fixed
now.
* libsupc++/compare (__detail::__3way_builtin_ptr_cmp): Use
three_way_comparable_with.
(__detail::__3way_cmp_with): Remove workaround for fixed bug.
(compare_three_way::operator()): Remove redundant constraint from
requires-clause.
(__detail::_Synth3way::operator()): Use three_way_comparable_with
instead of workaround.
* testsuite/18_support/comparisons/object/93479.cc: Prune extra
output due to simplified constraints on compare_three_way::operator().
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions