You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CppCoreGuidelines.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4692,7 +4692,7 @@ If the state of a base class object must depend on the state of a derived part o
4692
4692
}
4693
4693
};
4694
4694
4695
-
class D : public B { /* "¦ */ }; // some derived class
4695
+
class D : public B { /* ... */ }; // some derived class
4696
4696
4697
4697
shared_ptr<D> p = D::Create<D>(); // creating a D object
4698
4698
@@ -7257,7 +7257,7 @@ The members of a scoped object are themselves scoped and the scoped object's con
7257
7257
7258
7258
##### Example
7259
7259
7260
-
The following example is inefficient (because it has unnecessary allocation and deallocation), vulnerable to exception throws and returns in the "¦ part (leading to leaks), and verbose:
7260
+
The following example is inefficient (because it has unnecessary allocation and deallocation), vulnerable to exception throws and returns in the `...` part (leading to leaks), and verbose:
7261
7261
7262
7262
void some_function(int n)
7263
7263
{
@@ -15676,7 +15676,7 @@ Alternatively, we will decide that no change is needed and delete the entry.
15676
15676
* How granular should namespaces be? All classes/functions designed to work together and released together (as defined in Sutter/Alexandrescu) or something narrower or wider?
15677
15677
* Should there be inline namespaces (à la `std::literals::*_literals`)?
15678
15678
* Avoid implicit conversions
15679
-
* Const member functions should be thread safe "¦ aka, but I don't really change the variable, just assign it a value the first time it’s called "¦ argh
15679
+
* Const member functions should be thread safe ... aka, but I don't really change the variable, just assign it a value the first time it’s called ... argh
15680
15680
* Always initialize variables, use initialization lists for member variables.
15681
15681
* Anyone writing a public interface which takes or returns `void*` should have their toes set on fire. That one has been a personal favorite of mine for a number of years. :)
15682
15682
* Use `const`-ness wherever possible: member functions, variables and (yippee) `const_iterators`
0 commit comments