We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73bff4c commit 0289b1bCopy full SHA for 0289b1b
source/declarations.tex
@@ -1181,7 +1181,6 @@
1181
can be modified, any attempt to modify a \tcode{const} object during its
1182
lifetime~(\ref{basic.life}) results in undefined behavior.
1183
\begin{example}
1184
-
1185
\begin{codeblock}
1186
const int ci = 3; // cv-qualified (initialized as required)
1187
ci = 4; // ill-formed: attempt to modify \tcode{const}
@@ -1199,10 +1198,7 @@
1199
1198
int* iq = const_cast<int*>(ciq); // cast required
1200
*iq = 4; // undefined: modifies a \tcode{const} object
1201
\end{codeblock}
1202
1203
-\pnum
1204
-For another example
1205
+For another example,
1206
1207
struct X {
1208
mutable int i;
0 commit comments