Skip to content

Commit 96c9400

Browse files
authored
Merge 2022-11 CWG Motion 5
P2710R0 Core Language Working Group NB comment resolutions for the November, 2022 meeting; issue 2654
2 parents 09e1d93 + 079156d commit 96c9400

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

source/expressions.tex

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7191,10 +7191,9 @@
71917191
The behavior of an expression of the form \tcode{E1 \placeholder{op}= E2}
71927192
is equivalent to \tcode{E1 = E1 \placeholder{op} E2} except
71937193
that \tcode{E1} is evaluated only once.
7194-
Such expressions are deprecated
7195-
if \tcode{E1} has volatile-qualified type
7196-
and \placeholder{op} is not one of the bitwise operators
7197-
\tcode{|}, \tcode{\&}, \tcode{\caret}; see~\ref{depr.volatile.type}.
7194+
\begin{note}
7195+
The object designated by \tcode{E1} is accessed twice.
7196+
\end{note}
71987197
For \tcode{+=} and \tcode{-=},
71997198
\tcode{E1} shall either have arithmetic type or be a pointer to a
72007199
possibly cv-qualified completely-defined object type. In all other

source/future.tex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@
104104
brachiosaur = neck; // OK
105105
tail = brachiosaur; // OK
106106
tail = brachiosaur = neck; // deprecated
107-
brachiosaur += neck; // deprecated
108-
brachiosaur = brachiosaur + neck; // OK
109-
brachiosaur |= neck; // OK, bitwise compound expression
107+
brachiosaur += neck; // OK
110108
\end{codeblock}
111109
\end{example}
112110

0 commit comments

Comments
 (0)