Boost logo

Boost :

Subject: Re: [boost] Proposed new RAII Library
From: Sohail Somani (sohail_at_[hidden])
Date: 2012-09-15 21:12:24


On 15/09/2012 1:55 PM, Lorenzo Caminiti wrote:
> I wouldn't add the dismiss functionality. That is not always needed
> with RAII and the Scope Exit API is more generic without it. If users
> need such functionality, they can use a commit/dismiss variable
> external to Scope Exit to simply implement it:

Every scope guard since the beginning of time has had a dismiss/release
function.

Pardon me but writing an extra line is exactly what I'm trying to avoid.

I could have written 35 such classes with all this email.

Good thing I have a "libsohail" to stuff this into.

Sohail


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