MatrixFixed(T, int ROWS, int COLUMNS)
Derek Parnell
derek at psych.ward
Thu Jun 1 00:44:33 PDT 2006
On Thu, 1 Jun 2006 07:23:36 +0000 (UTC), sclytrack at pi.be wrote:
> Definition:
>
> struct MatrixFixed(T, int ROWS, int COLUMNS)
> {
> private:
> T data[ROWS, COLUMNS];
>
> Usage:
>
> alias MatrixFixed!(double, 2 , 2) Matrix4x4;
>
> Error:
>
> ./dxl/dnl/matrixfixed.d(23): Integer constant expression expected instead of 2
> , 2
The multi-dimensional array syntax is wrong. Try this instead ....
T data[ROWS][COLUMNS];
--
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocracy!"
1/06/2006 5:43:49 PM
More information about the Digitalmars-d
mailing list