Skip to content

Commit 703381d

Browse files
jensmaurerzygoloid
authored andcommitted
[dcl.type.cv,expr.ass] Clarify the meaning of "modify" for an object.
1 parent ae59b46 commit 703381d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

source/declarations.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,9 @@
11601160
\pnum
11611161
\indextext{const object!undefined change to}%
11621162
Except that any class member declared \tcode{mutable}\iref{dcl.stc}
1163-
can be modified, any attempt to modify a const object during its
1163+
can be modified, any attempt to modify~(\ref{expr.ass},
1164+
\ref{expr.post.incr}, \ref{expr.pre.incr}) a
1165+
const object\iref{basic.type.qualifier} during its
11641166
lifetime\iref{basic.life} results in undefined behavior.
11651167
\begin{example}
11661168
\begin{codeblock}

source/expressions.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5616,8 +5616,8 @@
56165616
\end{bnf}
56175617

56185618
\pnum
5619-
In simple assignment (\tcode{=}), the result of the right operand replaces
5620-
the value of the object referred to by the left operand.
5619+
In simple assignment (\tcode{=}), the object referred to by the left operand
5620+
is modified by replacing its value with the result of the right operand.
56215621

56225622
\pnum
56235623
\indextext{assignment!conversion by}%

0 commit comments

Comments
 (0)