Warning C26490
Don't use
reinterpret_cast
.
See also
Example
void function(void* ptr)
{
std::size_t val = reinterpret_cast<std::size_t>(ptr); // C26490, Don't use reinterpret_cast
}
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
}