C++ Logo


Advanced search

Re: scope guard

From: Jens Maurer <Jens.Maurer_at_[hidden]>
Date: Tue, 3 Aug 2021 14:08:25 +0200
On 03/08/2021 11.46, Baruch Burstein via Std-Proposals wrote:
> Hi.
> Why is there no generic scope guard in the standard library?
> I am sure there must have been such a proposal before, probably with an explanation of why it was not accepted, but I couldn't find it.

Try std::unique_ptr with a custom deleter.


Received on 2021-08-03 07:08:31