   (c++)whats wrong with this std::vector::insert() call?
  Hey I can't work out whats wrong with this insert call:vector<Vertex> lineVertices;//vector<Vertex> vertices;////append lineVertices onto verticesvertices.insert(lineVertices.begin(), lineVertices.end());It returns the error:Quote:error C2664: 'std::_Vector_iterator<_Ty,_Alloc> std::vector<_Ty>::insert(std::_Vector_iterator<_Ty,_Alloc>,const _Ty &)' : cannot convert parameter 2 from 'std::_Vector_iterator<_Ty,_Alloc>' to 'const Vertex &'   with   [  _Ty=Vertex,  _Alloc=std::allocator<Vertex>   ]   Reason: cannot convert from 'std::_Vector_iterator<_Ty,_Alloc>' to 'const Vertex'   with   [  _Ty=Vertex,  _Alloc=std::allocator<Vertex>   ]   No user-defined-conversion operator available that can perform this conversion, or the operator cannot be calledI don't understand what is wrong, I've done the exact same code before when using sets.thx   
  When you use insert() with a std::vector, you need to specify the insertion point. Ex:vertices.insert(vertices.begin(), lineVertices.begin(), lineVertices.end());   ;  edit: Too slow. Pwnd by 500.13 errors :'(The form of insert() that you are using is taking two vector<>::iterator parameters/ There are 3 possible insert:// iterator is vector<Type>::iteratoriterator insert(   iterator _Where,   const Type& _Val);// iterator is vector<Type>::iteratorvoid insert(   iterator _Where,   size_type _Count,   const Type& _Val);// iterator is vector<Type>::iterator// InputIterator is any iterator typetemplate<class InputIterator>   void insert( iterator _Where, InputIterator _First, InputIterator _Last   );Thus, what you need is notvertices.insert(lineVertices.begin(), lineVertices.end());Butvertices.insert(vertices.begin(), lineVertices.begin(), lineVertices.end());HTH   