From: William Kempf (sirwillard_at_[hidden])
Date: 2000-10-02 15:45:19
--- In boost_at_[hidden], "Greg Colvin" <gcolvin_at_u...> wrote:
> PS. Forgot operator. See below.
> > > When I needed such a class, I created auto_array_ptr from
auto_ptr (cut &
> > > paste) and changed delete to delete .
> > >
> > > Inelegant? yes.
> > > Quick & painless? yes.
> > > Did it work? yes.
> > > Would I rather see a version with a parameterized deleter
Again, I'm not sure how appropriate such a class is. It has very
little benefit over std::vector (the only benefit that comes to mind
being the availability of release(), which can be worked around using
std::auto_ptr<std::vector<T> > if it's that important for
optimization). I'm not a comittee member, but I don't see such a
class being added to the standard for this reason. So I don't see
much reason to spend effort on such a class for Boost either.
Am I failing to see some compelling reason to include it?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk