
14 Sep
2012
14 Sep
'12
7:12 p.m.
On 14/09/2012 2:58 PM, Andrew Sandoval wrote:
True, but that is why I was proposing two RAII classes. One that is limited and uses only static values for the deleter function and the no-delete value, and another that is much more open including state (RAIIFunction) because you can use bind with it, and lambda's that provide any needed state.
Ok, I guess you like the one with it encoded in the type. I can see its value. Regarding the second kind: https://github.com/ryppl/boost-svn/blob/master/boost/scope_exit.hpp#L615 Yes, it's already there but hidden in aux or detali or something. operator= is a more general dismiss(). So just making it public would be great. Sohail