Subject: Re: Possible defect: unneeded const in lambda capture
From: Ville Voutilainen (ville.voutilainen_at_[hidden])
Date: 2019-08-29 13:55:57
On Thu, 29 Aug 2019 at 21:43, Roman Odaisky <roma_at_[hidden]> wrote:
> > Would they? If the algorithm runs in multiple threads, they might want
> > a copy and don't
> > really care whether the lambda can or can't be moved from, because
> > it's copied into multiple
> > threads.
> People who don't care won't be affected. What's the downside?
I said people who don't care about moves, not people who don't care
about whether their copies
can now turn into moves. Like forwarding a prvalue of a lambda type or
a wrapper thereof.
What's the benefit of this change?
STD-DISCUSSION list run by herb.sutter at gmail.com
Older Archives on Google Groups