Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 536 Bytes

File metadata and controls

24 lines (19 loc) · 536 Bytes
title C26490
ms.date 03/22/2018
ms.topic reference
f1_keywords
C26490
helpviewer_keywords
C26490
description CppCoreCheck rule C26490 that enforces C++ Core Guidelines Type.1

C26490 NO_REINTERPRET_CAST

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
}