From b14fe453a4233ea8e9709004f264c07a4046113a Mon Sep 17 00:00:00 2001 From: Thibault Kruse Date: Thu, 11 Aug 2016 19:04:23 +0200 Subject: [PATCH] avoid keyword name --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index d81d8f8..5c87b20 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -7449,7 +7449,7 @@ If you can't name an enumeration, the values are not related ##### Example, bad - enum { red = 0xFF0000, scale = 4, signed = 1 }; + enum { red = 0xFF0000, scale = 4, is_signed = 1 }; Such code is not uncommon in code written before there were convenient alternative ways of specifying integer constants. @@ -7459,7 +7459,7 @@ Use `constexpr` values instead. For example: constexpr int red = 0x,FF0000; constexpr short scale = 4; - constexpr bool signed = true; + constexpr bool is_signed = true; ##### Enforcement