"Thomas Matelich"
On 8/23/05, Felipe Magno de Almeida
wrote: On 8/23/05, Thomas Matelich
wrote: I'm looking at ptr_vector to replace our wrapper around vector
. 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.
Continuing my exploration into porting, I discovered that you cannot check equality of reverse_iterator and const_reverse_iterator. This is a regression compared to std::vector.
that is certainly a problem...I'll look into this when I get some more time. Thanks Thorsten