I\'d like to overload operator[][] to give internal access to a 2D array of char in C++.
Right now I\'m only overloading operator[], which goes
There is no operator [][]: that's two [] operations in a row. You could:
Object::operator[] return an object of a second class representing a row, which has its own operator[] method that takes a column number;get(int row, int column) method and use that instead of operator overloading. I'd recommend this unless your object absolutely has to behave like an array.