C++ Logo

std-proposals

Advanced search

Re: [std-proposals] A new C++ keyword: forget

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Wed, 12 Aug 2026 17:54:42 +0300
On Wed, 12 Aug 2026 at 17:46, Bjorn Reese via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> On 8/12/26 16:04, Ville Voutilainen via Std-Proposals wrote:
>
> > 1) poisoning a variable after it's been moved from
>
> A moved-from variable can be recreated by assignment, a poisoned
> variable cannot. So this is only a partial solution for the use-case.

I don't quite follow. It's a 100% solution to the use case. It's for
people who don't want moved-from
variables to be reused or recreated.

Received on 2026-08-12 14:55:00