Compiler Error C2739
TOC
Collapse the table of content
Expand the table of content

Compiler Error C2739

 

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

An array dimension was not between 1 and 32.

The following sample generates C2739 and shows how to fix it:

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