M
magnus.moraberg
Hi,
Im using the class MField<Type> from the H3D API -
http://www.h3dapi.org/uploads/api/H3DAPI_20/docs/H3DAPI/html/classH3D_1_1MField.html
which contains -
typedef vector< Type >::iterator iterator; // and
void insert(iterator pos, const Type &x, int id=0);
I wish to insert a value at the start of an object of this type, as
follows -
segmentField->insert(segmentField->begin(),10);
but the problem is that begin() gives me a const_iterator which I cant
pass to an iterator. What should I do?
Thanks,
Barry
Im using the class MField<Type> from the H3D API -
http://www.h3dapi.org/uploads/api/H3DAPI_20/docs/H3DAPI/html/classH3D_1_1MField.html
which contains -
typedef vector< Type >::iterator iterator; // and
void insert(iterator pos, const Type &x, int id=0);
I wish to insert a value at the start of an object of this type, as
follows -
segmentField->insert(segmentField->begin(),10);
but the problem is that begin() gives me a const_iterator which I cant
pass to an iterator. What should I do?
Thanks,
Barry