Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2004-05-22 21:05:27


Question:

Shouldn't scoped_ptr have a constructor of the form:

template<class Y, class D> scoped_ptr(Y * p, D d)

where D is a custom deleter. Shared_ptr has it.

I have a need for this now. This has been raised during a discussion with
Martin Ecker re serialization library implementation.

Robert Ramey.


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