Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 565 Bytes

File metadata and controls

24 lines (19 loc) · 565 Bytes
title Warning C26493
ms.date 03/22/2018
f1_keywords
C26493
NO_CSTYLE_CAST
helpviewer_keywords
C26493
description CppCoreCheck rule that enforces C++ Core Guidelines Type.4

Warning C26493

Don't use C-style casts.

See also

C++ Core Guidelines Type.4.

Example

void function(const int* const_i)
{
    int* nonconst_i = (int*)const_i; // C26493 Don't use C-style casts
    int i = (int)*const_i; // C26493 Don't use C-style casts
}