-
Notifications
You must be signed in to change notification settings - Fork 804
Open
Labels
lwgIssue must be reviewed by LWG.Issue must be reviewed by LWG.not-editorialIssue is not deemed editorial; the editorial issue is kept open for tracking.Issue is not deemed editorial; the editorial issue is kept open for tracking.
Description
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
Labels
lwgIssue must be reviewed by LWG.Issue must be reviewed by LWG.not-editorialIssue is not deemed editorial; the editorial issue is kept open for tracking.Issue is not deemed editorial; the editorial issue is kept open for tracking.