C++ Logo

std-proposals

Advanced search

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

From: Magnus Fromreide <magfr_at_[hidden]>
Date: Mon, 12 Dec 2022 10:53:04 +0100
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

Received on 2022-12-12 09:53:08