I have a class header file called Grid.h that contains the following 2 private data object:
vector column;
vector> row;
This is probably not the index problem, but you also need a space between the nested angle brackets in your vector of vectors type declaration. C++ compilers have a hard time telling the difference between nested template types and the right bit shift operator.
Example:
vector > vec2d; // Good.
vector> anotherVec2d; // Bad!
vector< vector > yetAgain; // Best IMHO.
// Keeps the white space balanced.