Boost logo

Boost :

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


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


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