I have a class which needs a large 2D matrix, preferably of dynamic size but compile time setting of the size is ok if necessary. I would like to use the vector class for access simplicity if at all possible. I have tried putting the following line in my class definition but to no avail: