From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2005-11-10 17:25:40
> Is there an interest to write something like this
> int i = 2, j = 1;
> BOOST_FINALLY_BEGIN( (i)(j) )
> std::cerr << i + j << '\n';
> } BOOST_FINALLY_END
While Scope Guard with lambda could be used
in for simpler examples for more complex
situations your solution looks better.
Is compilation time bearable
when your tool is used extensively?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk