Skip to content

Commit 4ed7697

Browse files
committed
LWG4072 std::optional comparisons: constrain harder
1 parent a77c52d commit 4ed7697

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/utilities.tex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4659,6 +4659,7 @@
46594659
\begin{itemdescr}
46604660
\pnum
46614661
\constraints
4662+
\tcode{U} is not a specialization of optional.
46624663
The expression \tcode{*x == v} is well-formed and
46634664
its result is convertible to \tcode{bool}.
46644665
\begin{note}
@@ -4678,6 +4679,7 @@
46784679
\begin{itemdescr}
46794680
\pnum
46804681
\constraints
4682+
\tcode{T} is not a specialization of optional.
46814683
The expression \tcode{v == *x} is well-formed and
46824684
its result is convertible to \tcode{bool}.
46834685

@@ -4694,6 +4696,7 @@
46944696
\begin{itemdescr}
46954697
\pnum
46964698
\constraints
4699+
\tcode{U} is not a specialization of optional.
46974700
The expression \tcode{*x != v} is well-formed and
46984701
its result is convertible to \tcode{bool}.
46994702

@@ -4710,6 +4713,7 @@
47104713
\begin{itemdescr}
47114714
\pnum
47124715
\constraints
4716+
\tcode{T} is not a specialization of optional.
47134717
The expression \tcode{v != *x} is well-formed and
47144718
its result is convertible to \tcode{bool}.
47154719

@@ -4726,6 +4730,7 @@
47264730
\begin{itemdescr}
47274731
\pnum
47284732
\constraints
4733+
\tcode{U} is not a specialization of optional.
47294734
The expression \tcode{*x < v} is well-formed and
47304735
its result is convertible to \tcode{bool}.
47314736

@@ -4742,6 +4747,7 @@
47424747
\begin{itemdescr}
47434748
\pnum
47444749
\constraints
4750+
\tcode{T} is not a specialization of optional.
47454751
The expression \tcode{v < *x} is well-formed and
47464752
its result is convertible to \tcode{bool}.
47474753

@@ -4758,6 +4764,7 @@
47584764
\begin{itemdescr}
47594765
\pnum
47604766
\constraints
4767+
\tcode{U} is not a specialization of optional.
47614768
The expression \tcode{*x > v} is well-formed and
47624769
its result is convertible to \tcode{bool}.
47634770

@@ -4774,6 +4781,7 @@
47744781
\begin{itemdescr}
47754782
\pnum
47764783
\constraints
4784+
\tcode{T} is not a specialization of optional.
47774785
The expression \tcode{v > *x} is well-formed and
47784786
its result is convertible to \tcode{bool}.
47794787

@@ -4790,6 +4798,7 @@
47904798
\begin{itemdescr}
47914799
\pnum
47924800
\constraints
4801+
\tcode{U} is not a specialization of optional.
47934802
The expression \tcode{*x <= v} is well-formed and
47944803
its result is convertible to \tcode{bool}.
47954804

@@ -4806,6 +4815,7 @@
48064815
\begin{itemdescr}
48074816
\pnum
48084817
\constraints
4818+
\tcode{T} is not a specialization of optional.
48094819
The expression \tcode{v <= *x} is well-formed and
48104820
its result is convertible to \tcode{bool}.
48114821

@@ -4822,6 +4832,7 @@
48224832
\begin{itemdescr}
48234833
\pnum
48244834
\constraints
4835+
\tcode{U} is not a specialization of optional.
48254836
The expression \tcode{*x >= v} is well-formed and
48264837
its result is convertible to \tcode{bool}.
48274838

@@ -4838,6 +4849,7 @@
48384849
\begin{itemdescr}
48394850
\pnum
48404851
\constraints
4852+
\tcode{T} is not a specialization of optional.
48414853
The expression \tcode{v >= *x} is well-formed and
48424854
its result is convertible to \tcode{bool}.
48434855

0 commit comments

Comments
 (0)