| title | C26490 | |
|---|---|---|
| ms.date | 03/22/2018 | |
| ms.topic | reference | |
| f1_keywords |
|
|
| helpviewer_keywords |
|
|
| description | CppCoreCheck rule C26490 that enforces C++ Core Guidelines Type.1 |
Don't use reinterpret_cast.
void function(void* ptr)
{
std::size_t val = reinterpret_cast<std::size_t>(ptr); // C26490, Don't use reinterpret_cast
}