Hello, first off thanks for reading.
So my problem occurs when I try to copy an element from one vector into a second vector.
The error that I get says that the vector subscript is out of range when I try to push_back that element.
I only get an error when there is more than one face detected (element in the DetectedFaces vector), if there's only one element in the vector, it works fine.
while(!DetectedFaces.empty())
{
temp.push_back(DetectedFaces[0]); /////bad line
DetectedFaces.erase(DetectedFaces.begin());
}
Any ideas what would be wrong with this? or is there any other way to implement this so that all elements from the DetectedFaces vector get added onto the end of the temp vector?
Thanks again.