Warning C26483
Value 'value' is outside the bounds (0, 'bound') of variable 'variable'. Only index into arrays using constant expressions that are within bounds of the array (bounds.2).
See also
Example
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
}
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ