Hi guys,

I'm having problems with using map in VC++, here is the function that I'm making:

Code:
void GLMesh::convertToDiffCoord(Mesh *m)
{
	//get the pointer to the list of pointers to all vertices
	list<Vertex*>* v = m->get_vertices();

	//initialize a map that will map each vertex pointer with an unique key
	map<int, Vertex*> VMap;

	//initialize iterator for the pointer list v
	list<Vertex*>::iterator vi;

	//iterate through the list and map each member in the list with a unique value
	for (int i=0; i<v->size(); i++)
		for(vi = v->begin(); vi != v->end(); vi++)
			VMap[i] = v->[i];
}
I keep getting the error :"syntex error '[' ", any idea what's wrong?