
10 Nov
2005
10 Nov
'05
10:25 p.m.
"Alexander Nasonov"
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
Yes. 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? /Pavel