Edit

Share via


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
}