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;

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).


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at