Warnung C26483

Der Wert 'value' liegt außerhalb der Grenzen (0, 'bound') der Variablen 'Variable'. Index in Arrays mit Konstantenausdrücken, die sich innerhalb der Grenzen des Arrays befinden (Bounds.2).

Siehe auch

C++ Core Guidelines Bounds.2

Beispiel

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
}