警告 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
}