C++ Logo

std-proposals

Advanced search

Re: [std-proposals] explicit this

From: Marcin Jaczewski <marcinjaczewski86_at_[hidden]>
Date: Mon, 3 Apr 2023 11:07:03 +0200
pon., 3 kwi 2023 o 11:04 Frederick Virchanza Gotham via Std-Proposals
<std-proposals_at_[hidden]> napisaƂ(a):
>
> On Mon, Apr 3, 2023 at 9:36 AM Marcin Jaczewski
> <marcinjaczewski86_at_[hidden]> wrote:
> >
> > void SomeFunc(this Foo&)
> > {
> > this; //error!
> > }
>
>
> Please read my original post again, I was getting at something else.\

But it too solves your problem, besides, should this be work for
Clang-Tidy than standard?


> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals

Received on 2023-04-03 09:07:14