Boost logo

Boost Users :

From: Thomas Matelich (matelich_at_[hidden])
Date: 2005-08-23 11:32:27


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());

I've tried plain iterators, dereferencing, *iter.base(), etc. I guess
I could reinterpret_cast<T*>(*iter.base()). Is there a better way?

Also, theres a typo in the docs. The examples page talks about using
allocate_clone, and I'm pretty sure its supposed to be new_clone (If
not, theres a typo in the tutorial).

Thanks,
Tom


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