Boost logo

Boost :

From: Carl Daniel (cpdaniel_at_[hidden])
Date: 2002-01-26 18:22:33

From: <scleary_at_[hidden]>
> I already use a simple object of this type in my code -- it just derives
> from noncopyable and runs the function in its destructor. As such, it acts
> as a scoped_ptr<function<void> > that "frees" its "resource" by executing
> it.

Sounds like a simplified version of ScopeGuard. See


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