Warning C26493
Don't use C-style casts.
See also
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
}
Denne browser understøttes ikke længere.
Opgrader til Microsoft Edge for at drage fordel af de nyeste funktioner, sikkerhedsopdateringer og teknisk support.
Don't use C-style casts.
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
}