C++ Logo


Advanced search

Re: [std-proposals] int Func(void) noreentry(-1)

From: Thiago Macieira <thiago_at_[hidden]>
Date: Thu, 16 Feb 2023 14:31:29 -0800
On Thursday, 16 February 2023 09:23:31 PST Jason McKesson via Std-Proposals
> `foo` is now *moveable*, whereas before (since it stored a `mutex`),
> it was not moveable. If I use a `shared_ptr`, it could be copyable
> too.

Bonus: it allows controlling reentrancy on a set of objects of this class
larger than 1 and less than the universe.

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-02-16 22:31:31