Warnung C26471
Nicht
reinterpret_cast
verwenden. Eine Umwandlung vonvoid*
kann verwendet werdenstatic_cast
(type.1)
Name der Codeanalyse: NO_REINTERPRET_CAST_FROM_VOID_PTR
C++
void function(void* pValue)
{
{
int* pointerToInt = reinterpret_cast<int*>(pValue); // C26471, use static_cast instead
}
{
int* pointerToInt = static_cast<int*>(pValue); // Good
}
}