C26471 NO_REINTERPRET_CAST_FROM_VOID_PTR
Don't use reinterpret_cast. A cast from void* can use static_cast.
See also
Example
void function(void* pValue)
{
{
int* pointerToInt = reinterpret_cast<int*>(pValue); // C26471, use static_cast instead
}
{
int* pointerToInt = static_cast<int*>(pValue); // Good
}
}
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ