
9 Nov
2007
9 Nov
'07
2:13 p.m.
On Nov 9, 2007 4:06 AM, Ulrich Eckhardt <doomster@knuut.de> wrote:
Hi!
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. [snip] -- Felipe Magno de Almeida