Folks, how can I pass a 2d array with sizes, like void f( int m, int n, int a[m][n] ) { ... a[j][k] = ... ? I see claims that this is valid C99, but g++-4.2.1 gives error: ‘m’ was not declared in this scope
So, how can I make this work ? I don't care much about the function header or call syntax, but a[j][k] in the body should work as fast as a[j*n+k] . (Some suggest boost::multi_array -- anyone have an example of such an f () with that ?) cheers -- denis _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus