MatrixFixed(T, int ROWS, int COLUMNS)

sclytrack at pi.be sclytrack at pi.be
Thu Jun 1 00:43:45 PDT 2006


T data[ROWS][COLUMNS];

my bug.

In article <e5m4ln$2huc$1 at digitaldaemon.com>, sclytrack at pi.be says...
>
>
>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
>
>
>Version:
>
>Digital Mars D Compiler v0.154
>Copyright (c) 1999-2006 by Digital Mars written by Walter Bright
>Documentation: www.digitalmars.com/d/index.html
>
>Question:
>I was wondering if anybody could replicate this.
>I want to know if it is a compiler bug, my bug, or just my computer being lazy.
>
>





More information about the Digitalmars-d mailing list