mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Tweaked PR #1553 per editors call
This commit is contained in:
parent
153da17417
commit
dc8e49314f
|
@ -1346,7 +1346,7 @@ The rule is "avoid", not "don't use." Of course there will be (rare) exceptions,
|
|||
##### Enforcement
|
||||
|
||||
(Simple) Report all non-`const` variables declared at namespace scope and global pointers/references to non-const data.
|
||||
(??? NM: Obviously we can warn about non-`const` statics ... do we want to?)
|
||||
|
||||
|
||||
### <a name="Ri-singleton"></a>I.3: Avoid singletons
|
||||
|
||||
|
@ -9004,6 +9004,7 @@ Here, we ignore such cases.
|
|||
* [R.3: A raw pointer (a `T*`) is non-owning](#Rr-ptr)
|
||||
* [R.4: A raw reference (a `T&`) is non-owning](#Rr-ref)
|
||||
* [R.5: Prefer scoped objects, don't heap-allocate unnecessarily](#Rr-scoped)
|
||||
* [R.6: Avoid non-`const` global variables](#Rr-global)
|
||||
|
||||
* Allocation and deallocation rule summary:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user