From e6ac978f3a4d1a9f4e51cf53351cb10b637c8cd1 Mon Sep 17 00:00:00 2001 From: hsutter Date: Mon, 27 Nov 2017 11:56:12 -0800 Subject: [PATCH] Updated due to discussion about #1068 --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index b994f49..29a61f2 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -1190,7 +1190,7 @@ Having good (easy-to-understand, encouraging efficient use, not error-prone, sup Interface rule summary: * [I.1: Make interfaces explicit](#Ri-explicit) -* [I.2: Avoid global variables](#Ri-global) +* [I.2: Avoid non-`const` global variables](#Ri-global) * [I.3: Avoid singletons](#Ri-singleton) * [I.4: Make interfaces precisely and strongly typed](#Ri-typed) * [I.5: State preconditions (if any)](#Ri-pre) @@ -1264,7 +1264,7 @@ Functions can be template functions and sets of functions can be classes or clas * (Simple) A function should not make control-flow decisions based on the values of variables declared at namespace scope. * (Simple) A function should not write to variables declared at namespace scope. -### I.2: Avoid global variables +### I.2: Avoid non-`const` global variables ##### Reason