Warning C26482
Only index into arrays using constant expressions.
See also
Example
int getSomeIndex();
void function(int* p, int count)
{
p[getSomeIndex()] = 0; // C26482, Only index into arrays using constant expressions
}
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
}