|
Boost : |
From: Daniel James (daniel.james_at_[hidden])
Date: 2004-01-21 16:36:13
On Wed, 21 Jan 2004 16:01:56 +0100, Daniel Wallin wrote:
> Please present _real_ common use cases where this is needed,
> and where move_ptr can't be replaced with shared_ptr.
How about writing wrappers around C libraries which return pointers? You
always need a custom deleter for that. Of course, you could use a
shared_ptr, but Howard Hinnant's example (for implementing shared_ptr) is
possibly the only case when that isn't true.
Daniel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk