
16 Aug
2005
16 Aug
'05
3:31 p.m.
"Jonathan Wakely" <cow@compsoc.man.ac.uk> wrote in message news:20050816143918.GA75103@compsoc.man.ac.uk...
David Abrahams wrote:
bad. However, we're reviewing Dave and Andrei's policy_ptr soon so it might be better to use that framework for something like this.
could be.
I think ptr_container provides a safer and more generic solution to the problems described in the rationale for clone_ptr.
Another issue is also the overhead imposed by such a beast. Without move-aware containers I suspect that vector< clone_ptr<T> > is quite slow compared to ptr_vector<T>. -Thorsten