Skip to content

[expr], [over] Add cross-references for usual arithmetic conversions. #1804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -4599,7 +4598,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 @@ -4624,7 +4623,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 @@ -4816,7 +4815,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 @@ -4987,7 +4986,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 @@ -5004,7 +5003,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 @@ -5020,7 +5019,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 @@ -5036,7 +5035,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 @@ -5239,7 +5238,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 @@ -3693,7 +3693,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 @@ -3764,7 +3764,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 @@ -3869,7 +3869,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