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

Regarding the second kind:

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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at