
2012/9/4 Vicente J. Botet Escriba <vicente.botet@wanadoo.fr>:
Le 03/09/12 13:37, Sergey Radionov a écrit :
https://github.com/RSATom/finally_execute/blob/master/finally_execute.h
based on http://www.drdobbs.com/cpp/generic-change-the-way-you-write-excepti/18440375...
I know about http://sourceforge.net/projects/loki-lib/ but with boost::bind this can be much simpler: https://github.com/RSATom/finally_execute/blob/master/README
I've used this in many of my projects, and found it very usefull....
don't understand, why this simple solution does not contributed already to Boost by someone else... :)
Hi,
have you take a look at Boost.ScopedExit? Yes, but I think it's give too "dirty" code. And I don't like macros in C++ era :)
Best, Vicente
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost