Skip to content

Commit b050fd4

Browse files
committed
[re.submatch.op] Fix inconsistency between declaration and description
of sub_match operator<=>: remove 'constexpr' from declaration, and change return type in definition from 'bool' to 'auto'.
1 parent 66ac732 commit b050fd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/regex.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@
298298
template<class BiIter>
299299
bool operator==(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs);
300300
template<class BiIter>
301-
constexpr auto operator<=>(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs);
301+
auto operator<=>(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs);
302302

303303
template<class BiIter, class ST, class SA>
304304
bool operator==(
@@ -1808,7 +1808,7 @@
18081808
\indexlibrarymember{sub_match}{operator<=>}%
18091809
\begin{itemdecl}
18101810
template<class BiIter>
1811-
bool operator<=>(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs);
1811+
auto operator<=>(const sub_match<BiIter>& lhs, const sub_match<BiIter>& rhs);
18121812
\end{itemdecl}
18131813

18141814
\begin{itemdescr}

0 commit comments

Comments
 (0)