Skip to content

Commit 9928c95

Browse files
committed
typos, wording, links (closes #1529)
1 parent b4bb11a commit 9928c95

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: CppCoreGuidelines.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -8420,7 +8420,7 @@ This is a special case of the rule that [helper functions should be defined in t
84208420

84218421
##### Enforcement
84228422

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
84248424

84258425
### <a name="Ro-lambda"></a>C.170: If you feel like overloading a lambda, use a generic lambda
84268426

@@ -9091,7 +9091,7 @@ What is `Port`? A handy wrapper that encapsulates the resource:
90919091

90929092
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)
90939093

9094-
**See also**: [RAII](#Rr-raii)
9094+
**See also**: [RAII](#Re-raii)
90959095

90969096
### <a name="Rr-use-ptr"></a>R.2: In interfaces, use raw pointers to denote individual objects (only)
90979097

@@ -11752,7 +11752,7 @@ The C-style cast is dangerous because it can do any kind of conversion, deprivin
1175211752
##### Note
1175311753

1175411754
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.
1175611756

1175711757
double d {some_float};
1175811758
int64_t i {some_int32};
@@ -16506,7 +16506,7 @@ Templates can also be used for meta-programming; that is, programs that compose
1650616506

1650716507
A central notion in generic programming is "concepts"; that is, requirements on template arguments presented as compile-time predicates.
1650816508
"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).
1651016510
Concepts are supported in GCC 6.1 and later.
1651116511
Consequently, we comment out uses of concepts in examples; that is, we use them as formalized comments only.
1651216512
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
1774817748
##### Note
1774917749

1775017750
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.
1775217752
And don't get us started on macros!
1775317753

1775417754
**See also**: [T.69](#Rt-customization)
@@ -17915,7 +17915,7 @@ This is a simplified version of `std::copy` (ignoring the possibility of non-con
1791517915
// use loop calling copy constructors
1791617916
}
1791717917

17918-
template<class Itert>
17918+
template<class Iter>
1791917919
Out copy(Iter first, Iter last, Iter out)
1792017920
{
1792117921
return copy_helper(first, last, out, typename copy_trait<Iter>::tag{})

0 commit comments

Comments
 (0)