Skip to content

Commit dc8e493

Browse files
committed
Tweaked PR #1553 per editors call
1 parent 153da17 commit dc8e493

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CppCoreGuidelines.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ The rule is "avoid", not "don't use." Of course there will be (rare) exceptions,
13461346
##### Enforcement
13471347

13481348
(Simple) Report all non-`const` variables declared at namespace scope and global pointers/references to non-const data.
1349-
(??? NM: Obviously we can warn about non-`const` statics ... do we want to?)
1349+
13501350

13511351
### <a name="Ri-singleton"></a>I.3: Avoid singletons
13521352

@@ -9004,6 +9004,7 @@ Here, we ignore such cases.
90049004
* [R.3: A raw pointer (a `T*`) is non-owning](#Rr-ptr)
90059005
* [R.4: A raw reference (a `T&`) is non-owning](#Rr-ref)
90069006
* [R.5: Prefer scoped objects, don't heap-allocate unnecessarily](#Rr-scoped)
9007+
* [R.6: Avoid non-`const` global variables](#Rr-global)
90079008

90089009
* Allocation and deallocation rule summary:
90099010

0 commit comments

Comments
 (0)