Partilhar via


Aviso C26483

O valor 'value' está fora dos limites (0, 'bound') da variável 'variable'. Indexe somente matrizes usando expressões constantes que estejam dentro dos limites da matriz (limites.2).

Ver também

Limites das diretrizes principais do C++.2

Exemplo

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
}