$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2005-11-10 17:25:40
"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