From 79a217f660e9bad5b4257ffc4b4e9f8a5f851161 Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Wed, 15 Nov 2017 07:45:02 +0100 Subject: [PATCH] [expr], [over] Add cross-references for 'usual arithmetic conversions'. --- source/expressions.tex | 19 +++++++++---------- source/overloading.tex | 6 +++--- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/source/expressions.tex b/source/expressions.tex index 120241d6f7..a594150d9c 100644 --- a/source/expressions.tex +++ b/source/expressions.tex @@ -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} @@ -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 @@ -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}% @@ -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 @@ -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. @@ -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. @@ -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. @@ -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. @@ -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; diff --git a/source/overloading.tex b/source/overloading.tex index f1b9ae565b..b767228fd8 100644 --- a/source/overloading.tex +++ b/source/overloading.tex @@ -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}}. @@ -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}}. @@ -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}}.