Boost logo

Boost :

Subject: Re: [boost] very simple implementation of Andrei Alexandrescu's ScopeGuard idiom
From: Sohail Somani (sohail_at_[hidden])
Date: 2012-09-03 13:47:09


On 12-09-03 7:37 AM, Sergey Radionov wrote:
> don't understand, why this simple solution does not contributed
> already to Boost by someone else...:)

They did, and it was called Boost Scope Exit. I'd also like to have a
boost::scope_exit class that took in a boost function in its constructor
with the ability to dismiss whether or not that function is actually
called :)

Sohail


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk