$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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