Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 795 Bytes

c26477.md

File metadata and controls

17 lines (15 loc) · 795 Bytes
description Learn more about the C26477 USE_NULLPTR_NOT_CONSTANT C++ Core Guidelines Checker warning. The nullptr value allows overloads with special null handling.
title C26477 USE_NULLPTR_NOT_CONSTANT
ms.date 04/29/2022
ms.topic reference
f1_keywords
C26477
helpviewer_keywords
C26477
ms.assetid d5395efc-5eb2-4e82-9b45-fcd5ff4577bf
author kylereedmsft
ms.author kylereed
ms.custom kr2b-contr-experiment

C26477 USE_NULLPTR_NOT_CONSTANT

nullptr has a special type nullptr_t that allows overloads with special null handling. Using 0 or NULL in place of nullptr bypasses the type safety and deduction that nullptr provides.

C++ Core Guideline for this warning