Boost logo

Boost :

From: Stefan Slapeta (stefan_nospam__at_[hidden])
Date: 2004-10-03 10:55:42


Konstantin Echenko wrote:

> Some time ago Maxim Yegorushkin suggested use boost/bind to implement lazy ScopeGuard. I evolved this parasitic idea and reused a lot of code from boost/bind by preprocessing to implement make_guard binders.
> The ScopeGuard can be used as usual: scope_guard g = make_guard( func, args );
> What do you think about it? Is it possible to "legalize" such approach?

IMO the correct person to ask this question would be Andrei Alexandrescu.

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

Stefan


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