Compartilhar via


Aviso C26483

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

Confira também

Diretrizes Principais do C++ Bounds.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
}