
16 Sep
2012
16 Sep
'12
1:12 a.m.
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