Aviso C26471
Não use
reinterpret_cast
. Um cast devoid*
pode usarstatic_cast
(type.1)
Comentários
Nome da análise de código: NO_REINTERPRET_CAST_FROM_VOID_PTR
Exemplo
void function(void* pValue)
{
{
int* pointerToInt = reinterpret_cast<int*>(pValue); // C26471, use static_cast instead
}
{
int* pointerToInt = static_cast<int*>(pValue); // Good
}
}
Confira também
Comentários
https://aka.ms/ContentUserFeedback.
Brevemente: Ao longo de 2024, vamos descontinuar progressivamente o GitHub Issues como mecanismo de feedback para conteúdos e substituí-lo por um novo sistema de feedback. Para obter mais informações, veja:Submeter e ver comentários