-
Notifications
You must be signed in to change notification settings - Fork 789
Open
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
No labels