I'm trying to create a class that handles an array of pointers to the class Vertex, and I'm wanting to return one of the pointers by reference when the operator [] is used. So
std::cout << vertexpointers[i]; //should return a pointer that can be written to
vertexpointers[i] = pVertex; //should set position i to the pointer pVertex
This is what I've got in my header file but it wont compile