C++ Logo


Advanced search

Re: [std-proposals] this return type

From: Jens Maurer <jens.maurer_at_[hidden]>
Date: Fri, 7 Apr 2023 23:28:09 +0200
On 07/04/2023 22.04, Lénárd Szolnoki via Std-Proposals wrote:
> An alternative approach is that Base has a private `virtual void
> do_fun1()` member function and a public inline `Base& fun1() {
> do_fun1(); return *this; }` member function. This should achieve the
> same performance as the proposed this return type.

I can't get any compiler convinced to do the right thing for this



Received on 2023-04-07 21:28:13