--- title: Warning C26482 ms.date: 03/22/2018 f1_keywords: ["C26482", "NO_DYNAMIC_ARRAY_INDEXING"] helpviewer_keywords: ["C26482"] description: 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](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#SS-bounds) ## Example ```cpp int getSomeIndex(); void function(int* p, int count) { p[getSomeIndex()] = 0; // C26482, Only index into arrays using constant expressions } ```