
22 Aug
2007
22 Aug
'07
10:16 p.m.
"Johan Nilsson" wrote:
ScopeGuard-like functionality:
- [serious] I strongly believe that an accompanying ScopeGuard-like class accepting a function object should be included with the library. Why not call it "scope_exit", perhaps with support for predicates, e.g.:
#include <boost/multi_index/detail/scope_guard.hpp> The ON_BLOCK_EXIT/ON_BLOCK_EXIT_OBJ macros are missing, unfortunately. Joshua Lehrer had wrote a ScopeGuard variant that doesn't care about the no-object - object duality. It can be found at http://www.zete.org/people/jlehrer/scopeguard.html (works OK for me). /Pavel