|
Boost Users : |
From: Thomas Matelich (matelich_at_[hidden])
Date: 2005-08-23 14:39:27
On 8/23/05, Thorsten Ottosen <nesotto_at_[hidden]> wrote:
>
> "Thomas Matelich" <matelich_at_[hidden]> wrote in message
> news:3944d4580508231010719a0ebc_at_mail.gmail.com...
> > On 8/23/05, Felipe Magno de Almeida <felipe.m.almeida_at_[hidden]> wrote:
> > > On 8/23/05, Thomas Matelich <matelich_at_[hidden]> wrote:
> > > > I'm looking at ptr_vector to replace our wrapper around
> > > > vector<shared_ptr>. How do I correctly write the following:
> > > >
> > > > ptr_vector<T> a;
> > > > ptr_vector<T> b;
> > > > ...
> > > > b.push_back(a.begin());
> > > >
> > >
> > > b.push_back(new T(*a.begin()));
> > >
> > Thanks!
>
> I hope you know that can't just replace code using shared_ptr with
> ptr_container code...there's all kind of semanticdifferences.
>
> anyway good luck.
seems to be working okay so far. I'm trying to determine just how
important shared copying is, and what the performance impace is. Just
ran into my first non-trivial issue with no copy construction (I don't
want cloning) :) Fun stuff.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net