Pointer to multidimensional array
I want to write a function which returns a multidimensional array of bools. I gather that you cannot return an array in C++, but you can return a pointer to array. I have tried this, and it works fine when my array has a single dimension - but I want it to have two dimensions.
However, when I compile this, I get the following error:
bool** myFunction(bool myArray)
// Do some stuff to myArray
myPointer = myArray;
"error C2440: 'initializing' : cannot convert from 'bool ' to 'bool **"
Please can anyone show me how I can return this pointer in the correct manner?