The following function declaration is accepted by gcc, but not accepted by g++.
void do_something(char (*)[]);
The error given by g++ is:
error: parameter '<anonymous>' includes pointer to array of unknown bound 'char []'
I believe that in C, the parameter is converted to char** which is why gcc accepts it fine.
Can I make g++ accept this function somehow?
See example: http://ideone.com/yqvqdB :)
Thanks!