From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2004-06-05 02:50:39
"Richard Hadsell" <hadsell_at_[hidden]> wrote in message news:40C093F9.2020900_at_blueskystudios.com...
| Thorsten Ottosen wrote:
| >"Robert Ramey" <ramey_at_[hidden]> wrote in message news:20040603203108.C208831594_at_acme.west.net...
| >| Why isn't there a version of boost::scoped_ptr<T> that takes a deleter?
| >| That is, why isn't there scoped_ptr<T, D> ?
| >| It would be useful to me.
| >So would auto_ptr<T,D> in some of my code. In particular,
| Proposals to add features to scoped_ptr or scoped_array have been
| discussed in the past. Fortunately (for me), the bottom line has been
| to keep these objects light. If adding a deleter would require storing
| a pointer, then it increases its memory usage, and that makes it heavy.
that's why a D& argument should be allowed.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk