Skip to content

Commit

Permalink
LWG3360 three_way_comparable_with is inconsistent with similar concepts
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawn Perchik committed Feb 21, 2020
1 parent 08b085f commit 9a29c65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/support.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4601,13 +4601,13 @@
\begin{codeblock}
template<class T, class U, class Cat = partial_ordering>
concept @\deflibconcept{three_way_comparable_with}@ =
@\exposconcept{weakly-equality-comparable-with}@<T, U> &&
@\exposconcept{partially-ordered-with}@<T, U> &&
three_way_comparable<T, Cat> &&
three_way_comparable<U, Cat> &&
common_reference_with<const remove_reference_t<T>&, const remove_reference_t<U>&> &&
three_way_comparable<
common_reference_t<const remove_reference_t<T>&, const remove_reference_t<U>&>, Cat> &&
@\exposconcept{weakly-equality-comparable-with}@<T, U> &&
@\exposconcept{partially-ordered-with}@<T, U> &&
requires(const remove_reference_t<T>& t, const remove_reference_t<U>& u) {
{ t <=> u } -> @\exposconcept{compares-as}@<Cat>;
{ u <=> t } -> @\exposconcept{compares-as}@<Cat>;
Expand Down

0 comments on commit 9a29c65

Please sign in to comment.