|
Boost Users : |
From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2007-08-22 18:16:35
"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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net