27 Mar
2012
27 Mar
'12
2:36 p.m.
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() ); ? HTH -Thorsten