| title | C26482 | |
|---|---|---|
| ms.date | 03/22/2018 | |
| ms.topic | reference | |
| f1_keywords |
|
|
| helpviewer_keywords |
|
|
| description | CppCoreCheck rule C26482 that enforces C++ Core Guidelines Bounds.2 |
Only index into arrays using constant expressions.
int getSomeIndex();
void function(int* p, int count)
{
p[getSomeIndex()] = 0; // C26482, Only index into arrays using constant expressions
}