Skip to content

Commit 75c0adc

Browse files
jensmaurertkoeppe
authored andcommitted
[expr, over] Add cross-references for 'usual arithmetic conversions'. (#1804)
1 parent b8caef6 commit 75c0adc

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

source/expressions.tex

+9-10
Original file line numberDiff line numberDiff line change
@@ -421,11 +421,10 @@
421421
\rSec1[expr.arith.conv]{Usual arithmetic conversions}
422422

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

431430
\begin{itemize}
@@ -4684,7 +4683,7 @@
46844683
\pnum
46854684
The operands of \tcode{*} and \tcode{/} shall have arithmetic or unscoped
46864685
enumeration type; the operands of \tcode{\%} shall have integral or unscoped
4687-
enumeration type. The usual arithmetic conversions are performed on the
4686+
enumeration type. The usual arithmetic conversions\iref{expr.arith.conv} are performed on the
46884687
operands and determine the type of the result.
46894688

46904689
\pnum
@@ -4709,7 +4708,7 @@
47094708

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

47154714
\indextext{operator!addition}%
@@ -5047,7 +5046,7 @@
50475046
\tcode{bool}.
50485047

50495048
\pnum
5050-
The usual arithmetic conversions are performed on operands of arithmetic
5049+
The usual arithmetic conversions\iref{expr.arith.conv} are performed on operands of arithmetic
50515050
or enumeration type. If both operands are pointers, pointer
50525051
conversions\iref{conv.ptr} and qualification conversions\iref{conv.qual}
50535052
are performed to bring
@@ -5218,7 +5217,7 @@
52185217

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

@@ -5235,7 +5234,7 @@
52355234
\end{bnf}
52365235

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

@@ -5251,7 +5250,7 @@
52515250
\end{bnf}
52525251

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

@@ -5267,7 +5266,7 @@
52675266
\end{bnf}
52685267

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

@@ -5470,7 +5469,7 @@
54705469
that type and the result object is initialized using the selected operand.
54715470

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

54765475
\item One or both of the second and third operands have pointer type;

source/overloading.tex

+3-3
Original file line numberDiff line numberDiff line change
@@ -3754,7 +3754,7 @@
37543754

37553755
where
37563756
\tcode{\placeholder{LR}}
3757-
is the result of the usual arithmetic conversions between types
3757+
is the result of the usual arithmetic conversions\iref{expr.arith.conv} between types
37583758
\tcode{\placeholder{L}}
37593759
and
37603760
\tcode{\placeholder{R}}.
@@ -3846,7 +3846,7 @@
38463846

38473847
where
38483848
\tcode{\placeholder{LR}}
3849-
is the result of the usual arithmetic conversions between types
3849+
is the result of the usual arithmetic conversions\iref{expr.arith.conv} between types
38503850
\tcode{\placeholder{L}}
38513851
and
38523852
\tcode{\placeholder{R}}.
@@ -3951,7 +3951,7 @@
39513951

39523952
where
39533953
\tcode{\placeholder{LR}}
3954-
is the result of the usual arithmetic conversions between types
3954+
is the result of the usual arithmetic conversions\iref{expr.arith.conv} between types
39553955
\tcode{\placeholder{L}}
39563956
and
39573957
\tcode{\placeholder{R}}.

0 commit comments

Comments
 (0)