Edit

Share via


Warning C26493

Don't use C-style casts.

See also

C++ Core Guidelines Type.4.

Example

void function(const int* const_i)
{
    int* nonconst_i = (int*)const_i; // C26493 Don't use C-style casts
    int i = (int)*const_i; // C26493 Don't use C-style casts
}