|
|
От: |
rg45
|
|
| Дата: | 04.05.23 08:24 | ||
| Оценка: |
-1
|
||
A const object is an object of type const T or a non-mutable subobject of a const object.
Except for array types, a compound type ([basic.compound]) is not cv-qualified by the cv-qualifiers (if any) of the types from which it is compounded.
Any attempt to modify ([expr.ass], [expr.post.incr], [expr.pre.incr]) a const object (basic.type.qualifier) during its lifetime ([basic.life]) results in undefined behavior.