Export (0) Print
Expand All
Expand Minimize

Compiler Error C2767

Error Message

managed array dimension mismatch : expected number argument(s) - number provided

A managed array declaration was ill formed. For more information, see array.

The following sample generates C2767:

// C2767.cpp
// compile with: /clr
int main() {
   array<int> ^p1 = new array<int>(2,3); // C2767
   array<int> ^p2 = new array<int>(2);   // OK
}

Community Additions

ADD
Show:
© 2015 Microsoft