Boost logo

Boost Users :

From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2005-08-23 11:48:03


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,
> Tom
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
   Felipe Magno de Almeida
Developer from synergy and Computer Science student from State
University of Campinas(UNICAMP).
Unicamp: http://www.ic.unicamp.br
Synergy: http://www.synergy.com.br
"There is no dark side of the moon really. Matter of fact it's all dark."

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