Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 537 Bytes

File metadata and controls

23 lines (18 loc) · 537 Bytes
title Warning C26490
ms.date 03/22/2018
f1_keywords
C26490
NO_REINTERPRET_CAST
helpviewer_keywords
C26490
description 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
}