Skip to content

Commit 86a4408

Browse files
authored
Merge 2018-11 LWG Motion 20
P1248R1 Remove CommonReference requirement from StrictWeakOrdering (a.k.a Fixing Relations) Fixes #2426
2 parents 72820d6 + 5382d01 commit 86a4408

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

source/concepts.tex

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,35 +1080,9 @@
10801080
template<class R, class T, class U>
10811081
concept Relation =
10821082
Predicate<R, T, T> && Predicate<R, U, U> &&
1083-
CommonReference<const remove_reference_t<T>&, const remove_reference_t<U>&> &&
1084-
Predicate<R,
1085-
common_reference_t<const remove_reference_t<T>&, const remove_reference_t<U>&>,
1086-
common_reference_t<const remove_reference_t<T>&, const remove_reference_t<U>&>> &&
10871083
Predicate<R, T, U> && Predicate<R, U, T>;
10881084
\end{itemdecl}
10891085

1090-
\begin{itemdescr}
1091-
\pnum
1092-
Let
1093-
\begin{itemize}
1094-
\item \tcode{r} be an expression such that \tcode{decltype((r))} is \tcode{R},
1095-
\item \tcode{t} be an expression such that \tcode{decltype((t))} is \tcode{T},
1096-
\item \tcode{u} be an expression such that \tcode{decltype((u))} is \tcode{U},
1097-
and
1098-
\item \tcode{C} be
1099-
\begin{codeblock}
1100-
common_reference_t<const remove_reference_t<T>&,
1101-
const remove_reference_t<U>&>
1102-
\end{codeblock}
1103-
\end{itemize}
1104-
\tcode{\libconcept{Relation}<R, T, U>} is satisfied only if
1105-
1106-
\begin{itemize}
1107-
\item \tcode{bool(r(t, u)) == bool(r(C(t), C(u))).}
1108-
\item \tcode{bool(r(u, t)) == bool(r(C(u), C(t))).}
1109-
\end{itemize}
1110-
\end{itemdescr}
1111-
11121086
\rSec2[concept.strictweakorder]{Concept \libconcept{StrictWeakOrder}}
11131087

11141088
\indexlibrary{\idxcode{Relation}}%

0 commit comments

Comments
 (0)