Boost logo

Boost Users :

Subject: Re: [Boost-users] [ptr_container] Disable indirection interface
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2012-03-27 10:36:54

On 27-03-2012 10:56, Philipp Moeller wrote:
> I have an API that expects iterators to pointers and using it with
> ptr_container would simplify some code. But the indirection
> interface of ptr_container prevents this.
> I can of course add an iterator adapter on top of the ptr_vector but
> that seems like overkill to me.

Would this help:

ptr_vector<T> cont;
foo( cont.c_array(), cont.c_array() + cont.size() );




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