From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2007-11-09 09:13:10
On Nov 9, 2007 4:06 AM, Ulrich Eckhardt <doomster_at_[hidden]> wrote:
> I have a library here which I would propose for addition to Boost. It is a
> wrapper around a resource handle, just like std::auto_ptr is a wrapper around
> a pointer. The main difference to std::auto_ptr is that it doesn't overload
> operator-> and that it can (or, rather, must) be customized. Therefore it can
> also be used to hold resources like 'int' (a Unix filedescriptor) or 'FILE*'
> and also has the known ownership transfer semantics of std::auto_ptr.
I'm very interested. I'm also interested in a shared_handle.
And the ability to use custom deleters (probably in other classes, to
avoid size overhead for the normal case) would be nice too.
-- Felipe Magno de Almeida
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk