Compiler Error C2739
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at 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: