Skip to content

CWG2514 Modifying const subobjects #1365

@jensmaurer

Description

@jensmaurer
Member

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.

Activity

added this to the 2023-telecon milestone on Jan 25, 2023
erichkeane

erichkeane commented on Nov 9, 2023

@erichkeane
Collaborator

CWG2514 was discussed during the Thursday AM session in Kona in EWG/SG12.

The room unanimously decided that this is something we need a paper for, so Alisdair offered to find an author to provide one.

hanickadot

hanickadot commented on Jun 24, 2024

@hanickadot
Collaborator

EWG St. Louis: GDR volunteered to write a paper tightening the rules.

removed this from the 2024-telecon milestone on Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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

        Participants

        @jfbastien@hanickadot@erichkeane@jensmaurer

        Issue actions

          CWG2514 Modifying const subobjects · Issue #1365 · cplusplus/papers