|
Boost : |
Subject: Re: [boost] Proposed new RAII Library
From: Sohail Somani (sohail_at_[hidden])
Date: 2012-09-16 09:55:51
On 12-09-16 9:35 AM, Krzysztof Czainski wrote:
> So, maybe the dismiss functionality can be an external function
> (assuming a guard can be rebound to another function):
>
> void do_nothing() {}
> void dismiss( guard& ) { guard = do_nothing; }
Oh hay, I see what you were saying here. This would be part of Scope Exit.
Yeah this is OK. If a little weird :)
Sorry, had a late night and the dog woke me up early.
Sohail
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk