Skip to content

[16.4.6.10] missing dereference #6731

@ilazaric

Description

@ilazaric

https://eel.is/c++draft/res.on.data.races#3

A C++ standard library function shall not directly or indirectly modify objects ([intro.multithread]) accessible by threads other than the current thread unless the objects are accessed directly or indirectly via the function's non-const arguments, including this.

Shouldn't this section specify *this instead of this ?
this is never const https://eel.is/c++draft/expr.prim.this#3

const Class obj;
obj.const_mem_fn(); // `this` is `const Class*`

Metadata

Metadata

Assignees

No one assigned

    Labels

    lwgIssue must be reviewed by LWG.not-editorialIssue is not deemed editorial; the editorial issue is kept open for tracking.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions