
3 Oct
2004
3 Oct
'04
5:21 p.m.
Stefan Slapeta <stefan_nospam_@slapeta.com> 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