Boost logo

Boost :

Subject: [boost] very simple implementation of Andrei Alexandrescu's ScopeGuard idiom
From: Sergey Radionov (rsatom_at_[hidden])
Date: 2012-09-03 07:37:34

based on

I know about but with
boost::bind this can be much simpler:

I've used this in many of my projects, and found it very usefull....

don't understand, why this simple solution does not contributed
already to Boost by someone else... :)

Boost list run by bdawes at, gregod at, cpdaniel at, john at