
13 Jan
2009
13 Jan
'09
6:37 p.m.
Alexander Nasonov wrote:
As we're getting closer to C++0x with lambdas, scope_exit becomes less attractive because one can write something like:
using boost::multi_index::detail; scope_guard g = make_guard( [&a, b]() -> void { /* … */ } );
That will be nice, however, wide adoption of C++0x is still quite distant. ScopeExit is a very good solution for C++03, I'm eagerly waiting for its inclusion.