Skip to content

Commit c24e2c5

Browse files
committed
[over.oper] Clarify that the 'has a parameter of class or enum type' constraint
on overloaded operators only applies to the non-member case.
1 parent 54c6bf6 commit c24e2c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/overloading.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2876,8 +2876,8 @@
28762876
\pnum
28772877
\indextext{restriction!overloading}%
28782878
An operator function
2879-
shall either be a non-static member function or be a non-member function and
2880-
have at least one parameter whose type is a class, a reference to a class, an
2879+
shall either be a non-static member function or be a non-member function that
2880+
has at least one parameter whose type is a class, a reference to a class, an
28812881
enumeration, or a reference to an enumeration.
28822882
It is not possible to change the precedence, grouping, or number of operands
28832883
of operators.

0 commit comments

Comments
 (0)