Share via


Warnung C26493

Verwenden Sie keine C-Format-Umwandlungen.

Siehe auch

C++ Core Guidelines Type.4.

Beispiel

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
}