Skip to content

Commit 6f2b4e8

Browse files
committed
[expr.ass] Clarify that assignment always modifies
1 parent a470ff8 commit 6f2b4e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/expressions.tex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7310,6 +7310,10 @@
73107310
In simple assignment (\tcode{=}), the object referred to by the left operand
73117311
is modified\iref{defns.access}
73127312
by replacing its value with the result of the right operand.
7313+
\begin{note}
7314+
The object is modified even if the value of the right operand
7315+
compares equal\iref{expr.eq} to the object's old value.
7316+
\end{note}
73137317

73147318
\pnum
73157319
\indextext{assignment!conversion by}%

0 commit comments

Comments
 (0)