Skip to content

Commit 1c063e6

Browse files
committed
P3379R0 Constrain std::expected equality operators
1 parent d017ce4 commit 1c063e6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

source/utilities.tex

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8767,7 +8767,7 @@
87678767

87688768
\begin{itemdescr}
87698769
\pnum
8770-
\mandates
8770+
\constraints
87718771
The expressions \tcode{*x == *y} and \tcode{x.error() == y.error()}
87728772
are well-formed and their results are convertible to \tcode{bool}.
87738773

@@ -8785,7 +8785,8 @@
87858785

87868786
\begin{itemdescr}
87878787
\pnum
8788-
\mandates
8788+
\constraints
8789+
\tcode{T2} is not a specialization of \tcode{expected}.
87898790
The expression \tcode{*x == v} is well-formed and
87908791
its result is convertible to \tcode{bool}.
87918792
\begin{note}
@@ -8804,7 +8805,7 @@
88048805

88058806
\begin{itemdescr}
88068807
\pnum
8807-
\mandates
8808+
\constraints
88088809
The expression \tcode{x.error() == e.error()} is well-formed and
88098810
its result is convertible to \tcode{bool}.
88108811

@@ -9726,7 +9727,7 @@
97269727

97279728
\begin{itemdescr}
97289729
\pnum
9729-
\mandates
9730+
\constraints
97309731
The expression \tcode{x.error() == y.error()} is well-formed and
97319732
its result is convertible to \tcode{bool}.
97329733

@@ -9744,7 +9745,7 @@
97449745

97459746
\begin{itemdescr}
97469747
\pnum
9747-
\mandates
9748+
\constraints
97489749
The expression \tcode{x.error() == e.error()} is well-formed and
97499750
its result is convertible to \tcode{bool}.
97509751

0 commit comments

Comments
 (0)