C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Contradiction about this parameter in the C++ standard

From: Edward Catmur <ecatmur_at_[hidden]>
Date: Mon, 18 Apr 2022 21:23:45 +0100
On Mon, 18 Apr 2022 at 21:13, <language.lawyer_at_[hidden]> wrote:

> On 18/04/2022 22:57, Edward Catmur wrote:
> > I suppose that paragraph <https://eel.is/c++draft/expr.call#7.sentence-4>
> (and
> > the following Note) should be struck entirely.
> I'd say then we will not know which object [expr.prim.this]/1 speaks about
> (Ā«The keyword `this` names a pointer to the object for which an implicit
> object member function is invokedĀ»)
>

"the object for which an implicit object member function is invoked" seems
clear enough; per [expr.call]/2 it's the object expression on the LHS of
the postfix expression (before the '.', '->', '.*' or '->*'). Perhaps
[expr.prim.this] should refer forward to [expr.call]?

Received on 2022-04-18 20:23:57