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
}
เบราว์เซอร์นี้ไม่ได้รับการสนับสนุนอีกต่อไป
อัปเกรดเป็น Microsoft Edge เพื่อใช้ประโยชน์จากคุณลักษณะล่าสุด เช่น การอัปเดตความปลอดภัยและการสนับสนุนด้านเทคนิค
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
}