托管或 WinRTarray 维度不匹配:应有 N 个参数 - 提供了 M 个
注解
托管数组或 WinRT 数组的声明的格式不正确。 有关详细信息,请参阅 数组。
示例:
以下示例生成 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
}