Boost logo

Boost :

Subject: Re: [boost] [scope_exit] Boost.ScopeExit capturing 'this'
From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2009-03-11 05:01:36


Kim Barrett <kab.conundrums <at> verizon.net> writes:
> Any access syntax that doesn't have the form of a variable name will
> go right back to the original problem if one has a scope exit in the
> body of another scope exit. I've not yet needed to do something like
> that with BOOST_SCOPE_EXIT, but I know that I've more than once
> written a try/finally block that was in the finally clause of another
> try/finally block (in other languages, obviously).

I've droped this use-case in favor of more fast and elegant implementation
(search for "Watanabe's trick" in the scope_exit.hpp).

Alex


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk