Udostępnij przez


Ostrzeżenie C26493

Nie używaj rzutów w stylu C.

Zobacz też

C++ Core Guidelines Type.4( Typ wytycznych podstawowych języka C++).

Przykład

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
}