News for hackers. Stuff that matters.
Re:Catching use-after-move C++ bugs with Clang's consumed an... by clappski on Thursday July 11, 2019 @04:20AM (#20409969)
You could use;

auto* p2 = std::exchange( p1, nullptr );

There are no comments on this comment yet.