Skip to content

Commit 4e82f14

Browse files
jensmaurerzygoloid
authored andcommitted
[over.oper] Clarify that operator= cannot be overloaded for enumerations.
1 parent 07741c0 commit 4e82f14

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

source/overloading.tex

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3443,15 +3443,12 @@
34433443
enumeration, or a reference to an enumeration.
34443444
It is not possible to change the precedence, grouping, or number of operands
34453445
of operators.
3446-
The meaning of the operators
3447-
\tcode{=},
3448-
(unary)
3449-
\tcode{\&},
3450-
and
3451-
\tcode{,}
3452-
(comma), predefined for each type, can be changed for specific
3453-
class and enumeration types by
3446+
The meaning of
3447+
the operators \tcode{=}, (unary) \tcode{\&}, and \tcode{,} (comma),
3448+
predefined for each type, can be changed for specific class types by
34543449
defining operator functions that implement these operators.
3450+
Likewise, the meaning of the operators (unary) \tcode{\&} and \tcode{,} (comma)
3451+
can be changed for specific enumeration types.
34553452
\indextext{overloaded operator!inheritance of}%
34563453
Operator functions are inherited in the same manner as other base class
34573454
functions.

0 commit comments

Comments
 (0)