Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 590 Bytes

c26482.md

File metadata and controls

25 lines (19 loc) · 590 Bytes
title ms.date f1_keywords helpviewer_keywords description
Warning C26482
03/22/2018
C26482
NO_DYNAMIC_ARRAY_INDEXING
C26482
CppCoreCheck rule C26482 that enforces C++ Core Guidelines Bounds.2

Warning C26482

Only index into arrays using constant expressions.

See also

C++ Core Guidelines Bounds.2

Example

int getSomeIndex();

void function(int* p, int count)
{
    p[getSomeIndex()] = 0; // C26482, Only index into arrays using constant expressions
}