Skip to content

Commit c88fb46

Browse files
burblebeetkoeppe
authored andcommitted
[expr.unary.op] Say "the ~ operator" consistently, remove "unary"
We are currently using the term "unary complement operator" to refer to the "~" operator without ever giving it that name. This change removes the use of that undefined term.
1 parent 0bb57d5 commit c88fb46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/expressions.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4664,7 +4664,7 @@
46644664

46654665
\pnum
46664666
\indextext{operator!ones' complement}%
4667-
The operand of \tcode{\~{}} shall have integral or unscoped enumeration type.
4667+
The operand of the \tcode{\~{}} operator shall have integral or unscoped enumeration type.
46684668
Integral promotions are performed.
46694669
The type of the result is the type of the promoted operand.
46704670
% FIXME: [basic.fundamental]/p5 uses $x_i$; [expr] uses $\tcode{x}_i$.
@@ -4677,7 +4677,7 @@
46774677
There is an ambiguity
46784678
in the grammar when \tcode{\~{}} is followed by
46794679
a \grammarterm{type-name} or \grammarterm{decltype-specifier}.
4680-
The ambiguity is resolved by treating \tcode{\~{}} as the unary complement
4680+
The ambiguity is resolved by treating \tcode{\~{}} as the
46814681
operator rather than as the start of an \grammarterm{unqualified-id}
46824682
naming a destructor.
46834683
\begin{note}

0 commit comments

Comments
 (0)