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
scope_guard g = make_guard(func, args);
ScopeGuard g = MakeGuard(boost::bind(func, args));
-- Maxim Yegorushkin