| title | Warning C26493 | ||
|---|---|---|---|
| ms.date | 03/22/2018 | ||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| description | CppCoreCheck rule that enforces C++ Core Guidelines Type.4 |
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
}