Boost logo

Boost :

Subject: Re: [boost] [scope_exit] Boost.ScopeExit capturing 'this'
From: Kim Barrett (kab.conundrums_at_[hidden])
Date: 2009-03-11 20:00:36


At 9:01 AM +0000 3/11/09, Alexander Nasonov wrote:
>Kim Barrett <kab.conundrums <at> verizon.net> writes:
> > ... if one has a scope exit in the
> > body of another scope exit.
>
>I've droped this use-case in favor of more fast and elegant implementation
>(search for "Watanabe's trick" in the scope_exit.hpp).

OK. It's certainly a rare use case. It would be nice if this restriction
were mentioned in the documentation. It might not be obvious from the
compiler's error messages that this is the problem when someone tries it.


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