Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 537 Bytes

c26490.md

File metadata and controls

23 lines (18 loc) · 537 Bytes
title ms.date f1_keywords helpviewer_keywords description
Warning C26490
03/22/2018
C26490
NO_REINTERPRET_CAST
C26490
CppCoreCheck rule C26490 that enforces C++ Core Guidelines Type.1

Warning C26490

Don't use reinterpret_cast.

See also

C++ Core Guidelines Type.1.

Example

void function(void* ptr)
{
    std::size_t val = reinterpret_cast<std::size_t>(ptr); // C26490, Don't use reinterpret_cast
}