My subject pretty much sums this up. I can't seem to be able to pass a memory address of a vector to a function.
Code:
vector<Triangle*> TriangleVector;//Vector I am working with
.....................................................
//Here I want to pass a pointer to a vector of Trianglepointers
void GetMirrorTri(vector<Triangle*> *TriVec);
......................................................
//This is how the function will be called in the program
GetMirrorTri(&TriangleVector[Index]);
This code compiles when I try to declare the function to take a references instead of a pointer