Boost logo

Boost :

From: Phil Nash (phil.nash.lists_at_[hidden])
Date: 2002-04-19 14:25:32


> > int main()
> > {
> > shared_handle h(CreateHandle(), &CloseHandle );
> > shared_handle h2(h);
> > }
>
> It's worth noting that for anything that's a pointer, rather than a
> non-pointer type, we have this already.

Yes, in fact it was the original discussion about adding this feature to
shared_ptr and scoped_ptr last year that got me thinking about the more
general resource case.

Regards,

[)o
IhIL..


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