Compiler Error C2739

'number' : explicit managed array dimensions must be between 1 and 32

An array dimension was not between 1 and 32.

The following sample generates C2739:

// C2739.cpp
// compile with: /clr
int main() {
   array<int, -1>^a;   // C2739
   // try the following line instead
   // array<int, 2>^a;
}

Community Additions

ADD
Show: