File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 7191
7191
The behavior of an expression of the form \tcode {E1 \placeholder {op}= E2}
7192
7192
is equivalent to \tcode {E1 = E1 \placeholder {op} E2} except
7193
7193
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 }
7198
7197
For \tcode {+=} and \tcode {-=},
7199
7198
\tcode {E1} shall either have arithmetic type or be a pointer to a
7200
7199
possibly cv-qualified completely-defined object type. In all other
Original file line number Diff line number Diff line change 104
104
brachiosaur = neck; // OK
105
105
tail = brachiosaur; // OK
106
106
tail = brachiosaur = neck; // deprecated
107
- brachiosaur += neck; // deprecated
108
- brachiosaur = brachiosaur + neck; // OK
109
- brachiosaur |= neck; // OK, bitwise compound expression
107
+ brachiosaur += neck; // OK
110
108
\end {codeblock }
111
109
\end {example }
112
110
You can’t perform that action at this time.
0 commit comments