Skip to content

Commit

Permalink
[expr, over] Add cross-references for 'usual arithmetic conversions'. (
Browse files Browse the repository at this point in the history
  • Loading branch information
jensmaurer authored and tkoeppe committed Nov 21, 2017
1 parent 0683c99 commit b97296d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
19 changes: 9 additions & 10 deletions source/expressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -421,11 +421,10 @@
\rSec1[expr.arith.conv]{Usual arithmetic conversions}

\pnum
\indextext{conversion!usual arithmetic}%
Many binary operators that expect operands of arithmetic or enumeration
type cause conversions and yield result types in a similar way. The
purpose is to yield a common type, which is also the type of the result.
This pattern is called the \term{usual arithmetic conversions},
This pattern is called the \defnx{usual arithmetic conversions}{conversion!usual arithmetic},
which are defined as follows:

\begin{itemize}
Expand Down Expand Up @@ -4684,7 +4683,7 @@
\pnum
The operands of \tcode{*} and \tcode{/} shall have arithmetic or unscoped
enumeration type; the operands of \tcode{\%} shall have integral or unscoped
enumeration type. The usual arithmetic conversions are performed on the
enumeration type. The usual arithmetic conversions\iref{expr.arith.conv} are performed on the
operands and determine the type of the result.

\pnum
Expand All @@ -4709,7 +4708,7 @@

\pnum
The additive operators \tcode{+} and \tcode{-} group left-to-right. The
usual arithmetic conversions are performed for operands of arithmetic or
usual arithmetic conversions\iref{expr.arith.conv} are performed for operands of arithmetic or
enumeration type.

\indextext{operator!addition}%
Expand Down Expand Up @@ -5047,7 +5046,7 @@
\tcode{bool}.

\pnum
The usual arithmetic conversions are performed on operands of arithmetic
The usual arithmetic conversions\iref{expr.arith.conv} are performed on operands of arithmetic
or enumeration type. If both operands are pointers, pointer
conversions\iref{conv.ptr} and qualification conversions\iref{conv.qual}
are performed to bring
Expand Down Expand Up @@ -5218,7 +5217,7 @@

\pnum
If both operands are of arithmetic or enumeration type, the usual arithmetic
conversions are performed on both operands; each of the operators shall yield
conversions\iref{expr.arith.conv} are performed on both operands; each of the operators shall yield
\tcode{true} if the specified relationship is true and \tcode{false} if it is
false.

Expand All @@ -5235,7 +5234,7 @@
\end{bnf}

\pnum
The usual arithmetic conversions are performed; the result is the
The usual arithmetic conversions\iref{expr.arith.conv} are performed; the result is the
bitwise \logop{AND} function of the operands. The operator
applies only to integral or unscoped enumeration operands.

Expand All @@ -5251,7 +5250,7 @@
\end{bnf}

\pnum
The usual arithmetic conversions are performed; the result is the
The usual arithmetic conversions\iref{expr.arith.conv} are performed; the result is the
bitwise exclusive \logop{OR} function of the operands. The
operator applies only to integral or unscoped enumeration operands.

Expand All @@ -5267,7 +5266,7 @@
\end{bnf}

\pnum
The usual arithmetic conversions are performed; the result is the
The usual arithmetic conversions\iref{expr.arith.conv} are performed; the result is the
bitwise inclusive \logop{OR} function of its operands. The
operator applies only to integral or unscoped enumeration operands.

Expand Down Expand Up @@ -5470,7 +5469,7 @@
that type and the result object is initialized using the selected operand.

\item The second and third operands have arithmetic or enumeration type;
the usual arithmetic conversions are performed to bring them to a common
the usual arithmetic conversions\iref{expr.arith.conv} are performed to bring them to a common
type, and the result is of that type.

\item One or both of the second and third operands have pointer type;
Expand Down
6 changes: 3 additions & 3 deletions source/overloading.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3754,7 +3754,7 @@

where
\tcode{\placeholder{LR}}
is the result of the usual arithmetic conversions between types
is the result of the usual arithmetic conversions\iref{expr.arith.conv} between types
\tcode{\placeholder{L}}
and
\tcode{\placeholder{R}}.
Expand Down Expand Up @@ -3846,7 +3846,7 @@

where
\tcode{\placeholder{LR}}
is the result of the usual arithmetic conversions between types
is the result of the usual arithmetic conversions\iref{expr.arith.conv} between types
\tcode{\placeholder{L}}
and
\tcode{\placeholder{R}}.
Expand Down Expand Up @@ -3951,7 +3951,7 @@

where
\tcode{\placeholder{LR}}
is the result of the usual arithmetic conversions between types
is the result of the usual arithmetic conversions\iref{expr.arith.conv} between types
\tcode{\placeholder{L}}
and
\tcode{\placeholder{R}}.
Expand Down

0 comments on commit b97296d

Please sign in to comment.