From: Dan W. (danw_at_[hidden])
Date: 2003-12-29 01:15:27
Not sure if this might be a good idea, but here it goes:
Would it make sense to have pointer container specializations for
auto_ptr<>, shared_ptr<> and weak_ptr<>, simply as a way of specifying the
I'm thinking, for instance,
ptr_vector< auto_ptr<X> > would compile to same code, basically, as
ptr_vector<X>, except: it would take auto_ptr<> as input, and return
auto_ptr<> through functions that would otherwise return a pointer.
ptr_vector< shared_ptr<X> > would allow pointer containers to share
ownership, and would interface via shared_ptr<>'s; and...
ptr_vector< weak_ptr<X> > might give us the advantage of simplified
algorithmic syntax, etceteras, but not take ownership.
Just a thought.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk