警告 C26483
值“value”超出变量“variable”的边界(0,“bound”)。 仅使用数组边界内的常量表达式在数组中编制索引(bounds.2)。
另请参阅
示例
void function()
{
std::array<int, 3> arr1 { 1, 2, 3 };
arr1[3] = 4; // C26483, 3 is outside the bounds of the array
int arr2[] { 1, 2, 3 };
arr2[3] = 4; // C26483, 3 is outside the bounds of the array
}