Compiler Error C2767
managed or WinRTarray dimension mismatch : expected N argument(s) - M provided
A managed or WinRT array declaration was ill formed. For more information, see array.
The following sample generates C2767 and shows how to fix it:
// C2767.cpp
// compile with: /clr
int main() {
array<int> ^p1 = new array<int>(2,3); // C2767
array<int> ^p2 = new array<int>(2); // OK
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for