C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Execute statement when leaving scope

From: Jarrad Waterloo <descender76_at_[hidden]>
Date: Mon, 12 Dec 2022 07:44:24 -0500
Not to be dense, does that mean the following is slated for 23 or 26?


   - scope_exit
   - scope_fail
   - scope_success
   - unique_resource


On Mon, Dec 12, 2022 at 4:53 AM Magnus Fromreide via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> On Mon, Dec 12, 2022 at 11:42:44AM +0200, Pavel Vazharov via Std-Proposals
> wrote:
> > > I propose that we should be able to achieve this in C++26 with some
> > > simple syntax as follows:
> > >
> >
> > There is similar functionality already proposed by wg21.link/P0052.
> > https://en.cppreference.com/w/cpp/experimental/scope_exit
> > However, I don't see the above implemented in the libstdc++ for GCC 12.1.
>
> It might be on it's way, due to P2631 Publish TS Library Fundamentals v3
> Now!
> Status link: https://github.com/cplusplus/papers/issues/1301
>
> /MF
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>

Received on 2022-12-12 12:44:37