Partager via


Avertissement C26493

N’utilisez pas de casts de style C.

Voir aussi

C++ Core Guidelines Type.4.

Exemple

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
}