How to pass 2D variable-sized arrays in C++?

John Love-Jensen eljay@adobe.com
Tue Oct 1 06:21:00 GMT 2002


> OK, but what's your point here? We were talking about dynamically
> sized 2D arrays where the dimension of the array passed to `foo' is
> not known at compile time.

In that case, I refer back to my first answer:
typedef vector<vector<float> > myarray;

void foo(myarray& a) ...

--Eljay



More information about the Gcc-help mailing list