This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to pass 2D variable-sized arrays in C++?
- From: John Love-Jensen <eljay at adobe dot com>
- To: Claudio Bley <bley at cs dot uni-magdeburg dot de>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 01 Oct 2002 08:18:44 -0500
- Subject: Re: How to pass 2D variable-sized arrays in C++?
> 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