Skip to content

Commit beab665

Browse files
RexJaeschkeBillWagner
authored andcommitted
support unsigned right shift operator
1 parent 8f1f16c commit beab665

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

standard/classes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4969,7 +4969,7 @@ binary_operator_declarator
49694969
49704970
overloadable_binary_operator
49714971
: '+' | '-' | '*' | '/' | '%' | '&' | '|' | '^' | '<<'
4972-
| right_shift | '==' | '!=' | '>' | '<' | '>=' | '<='
4972+
| right_shift | unsigned_right_shift | '==' | '!=' | '>' | '<' | '>=' | '<='
49734973
;
49744974
49754975
conversion_operator_declarator
@@ -5064,7 +5064,7 @@ The `true` and `false` unary operators require pair-wise declaration. A compile-
50645064
The following rules apply to binary operator declarations, where `T` denotes the instance type of the class or struct that contains the operator declaration:
50655065
50665066
- A binary non-shift operator shall take two parameters, at least one of which shall have type `T` or `T?`, and can return any type.
5067-
- A binary `<<` or `>>` operator ([§12.14](expressions.md#1214-shift-operators)) shall take two parameters, the first of which shall have type `T` or `T?` and the second of which shall have type `int` or `int?`, and can return any type.
5067+
- A binary `<<`, `>>`, or `>>>` operator ([§12.14](expressions.md#1214-shift-operators)) shall take two parameters, the first of which shall have type `T` or `T?` and the second of which shall have type `int` or `int?`, and can return any type.
50685068
50695069
The signature of a binary operator consists of the operator token (`+`, `-`, `*`, `/`, `%`, `&`, `|`, `^`, `<<`, `>>`, `==`, `!=`, `>`, `<`, `>=`, or `<=`) and the types of the two parameters. The return type and the names of the parameters are not part of a binary operators signature.
50705070

0 commit comments

Comments
 (0)