C++ Logo


Advanced search

Subject: Re: [std-proposals] async coroutines vs. lambdas
From: Ville Voutilainen (ville.voutilainen_at_[hidden])
Date: 2020-05-14 08:25:00

On Thu, 14 May 2020 at 15:56, Avi Kivity <avi_at_[hidden]> wrote:
> I'm not sure I understand where the temporary really is in the
> not-so-lame testcase in the bug report. To me,
> it seems like everything is stored and lifetimes don't end
> prematurely, but I don't understand how initial_suspend
> really works. :)
> Copying it here for reference:

No worries, I see it now, I managed to misread get_real_lambda as
returning the lambda, whereas it returns a call
to it, which is asynchronous.

STD-PROPOSALS list run by std-proposals-owner@lists.isocpp.org

Standard Proposals Archives on Google Groups