Skip to content

[dcl.stc]/9 allows modification of any member provided any is mutable #2837

Closed
@sdkrystian

Description

@sdkrystian
Contributor

The mutable specifier on a class data member nullifies a const specifier applied to the containing class object

This has the effect of saying that specifying any data member of a class as mutable is result in the object losing it's const qualification, leading to any member being able to be modified. This is obviously not the intended meaning.

Activity

self-assigned this
on Apr 29, 2019
jensmaurer

jensmaurer commented on Apr 29, 2019

@jensmaurer
Member

I think the right fix is to turn [dcl.stc} p9 into a note; this is all said elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Participants

    @sdkrystian@jensmaurer

    Issue actions

      [dcl.stc]/9 allows modification of any member provided any is mutable · Issue #2837 · cplusplus/draft