Compartir vía


Advertencia C26493

No usar conversiones de estilo C.

Consulte también

C++ Core Guidelines Type.4.

Ejemplo

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
}