I am trying to pass a reference to a two-dimensional array to a function in C++. I know the size of both dimensions at compile time. Here is what I have right now:
const int board_width = 80;
const int board_height = 80;
void do_something(int[board_width][board_height]& array); //function prototype
But this doesn't work. I get this error from g++:
error: expected ‘,’ or ‘...’ before ‘*’ token
What does this error mean, and how can I fix it?