Skip to content

CWG2514 Modifying const subobjects #1365

@jensmaurer

Description

@jensmaurer

CWG2514 seeks to allow relaxing the rules for modifying const objects:

  • const subobjects of non-const complete objects can be modified
  • objects with dynamic storage duration are not const objects
  • (not in this issue, but related) function parameter objects are not const objects

Note the distinction between "const object" and "lvalue of const type"; the latter is not touched.

CWG solicits the advice of SG12 in handling this issue.

Metadata

Metadata

Labels

EWGEvolutionpaper neededAn issue needs a paper to describe its solution

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions