Boost logo

Boost :

From: Maxim Yegorushkin (e-maxim_at_[hidden])
Date: 2004-10-03 12:21:01


Stefan Slapeta <stefan_nospam__at_[hidden]> wrote:

[]

> However, from my experience, his current scopeguard implementation works
> very well together with boost.bind and boost.lambda.

The major drawback is that his implementation is not bundled with boost.

Making it a boost thing makes it more convenient because I always want a
boost::bind functor to do cleanup, so proposed code allows for terser
syntax:

     scope_guard g = make_guard(func, args);

instead of:

     ScopeGuard g = MakeGuard(boost::bind(func, args));

-- 
Maxim Yegorushkin

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