Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2004-06-05 02:50:39

"Richard Hadsell" <hadsell_at_[hidden]> wrote in message
| Thorsten Ottosen wrote:
| >"Robert Ramey" <ramey_at_[hidden]> wrote in message
| >| 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,
| >auto_ptr<T,D&>.
| >
| >
| 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, gregod at, cpdaniel at, john at