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
+6-6
Original file line number
Diff line number
Diff line change
@@ -8420,7 +8420,7 @@ This is a special case of the rule that [helper functions should be defined in t
8420
8420
8421
8421
##### Enforcement
8422
8422
8423
-
* Flag operator definitions that are not it the namespace of their operands
8423
+
* Flag operator definitions that are not in the namespace of their operands
8424
8424
8425
8425
### <a name="Ro-lambda"></a>C.170: If you feel like overloading a lambda, use a generic lambda
8426
8426
@@ -9091,7 +9091,7 @@ What is `Port`? A handy wrapper that encapsulates the resource:
9091
9091
9092
9092
Where a resource is "ill-behaved" in that it isn't represented as a class with a destructor, wrap it in a class or use [`finally`](#Re-finally)
9093
9093
9094
-
**See also**: [RAII](#Rr-raii)
9094
+
**See also**: [RAII](#Re-raii)
9095
9095
9096
9096
### <a name="Rr-use-ptr"></a>R.2: In interfaces, use raw pointers to denote individual objects (only)
9097
9097
@@ -11752,7 +11752,7 @@ The C-style cast is dangerous because it can do any kind of conversion, deprivin
11752
11752
##### Note
11753
11753
11754
11754
When converting between types with no information loss (e.g. from `float` to
11755
-
`double` or `int64` from `int32`), brace initialization may be used instead.
11755
+
`double` or from `int32` to `int64`), brace initialization may be used instead.
11756
11756
11757
11757
double d {some_float};
11758
11758
int64_t i {some_int32};
@@ -16506,7 +16506,7 @@ Templates can also be used for meta-programming; that is, programs that compose
16506
16506
16507
16507
A central notion in generic programming is "concepts"; that is, requirements on template arguments presented as compile-time predicates.
16508
16508
"Concepts" are defined in an ISO Technical Specification: [concepts](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4553.pdf).
16509
-
A draft of a set of standard-library concepts can be found in another ISO TS: [ranges](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/n4569.pdf)
16509
+
A draft of a set of standard-library concepts can be found in another ISO TS: [ranges](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/n4569.pdf).
16510
16510
Concepts are supported in GCC 6.1 and later.
16511
16511
Consequently, we comment out uses of concepts in examples; that is, we use them as formalized comments only.
16512
16512
If you use GCC 6.1 or later, you can uncomment them.
@@ -17748,7 +17748,7 @@ Templates typically appear in header files so their context dependencies are mor
17748
17748
##### Note
17749
17749
17750
17750
Having a template operate only on its arguments would be one way of reducing the number of dependencies to a minimum, but that would generally be unmanageable.
17751
-
For example, an algorithm usually uses other algorithms and invoke operations that does not exclusively operate on arguments.
17751
+
For example, algorithms usually use other algorithms and invoke operations that do not exclusively operate on arguments.
17752
17752
And don't get us started on macros!
17753
17753
17754
17754
**See also**: [T.69](#Rt-customization)
@@ -17915,7 +17915,7 @@ This is a simplified version of `std::copy` (ignoring the possibility of non-con
17915
17915
// use loop calling copy constructors
17916
17916
}
17917
17917
17918
-
template<class Itert>
17918
+
template<class Iter>
17919
17919
Out copy(Iter first, Iter last, Iter out)
17920
17920
{
17921
17921
return copy_helper(first, last, out, typename copy_trait<Iter>::tag{})
0 commit comments