Give an unique anchor name to C.5 "#Rc-helper"

instead of the same one with C.4 "#Rc-member".
This commit is contained in:
Kazutoshi SATODA
2015-09-22 21:16:06 +09:00
parent a9ca380378
commit 4c73b0bff1

View File

@@ -2635,7 +2635,7 @@ Class rule summary:
* [C.2: Use `class` if the class has an invariant; use `struct` if the data members can vary independently](#Rc-struct) * [C.2: Use `class` if the class has an invariant; use `struct` if the data members can vary independently](#Rc-struct)
* [C.3: Represent the distinction between an interface and an implementation using a class](#Rc-interface) * [C.3: Represent the distinction between an interface and an implementation using a class](#Rc-interface)
* [C.4: Make a function a member only if it needs direct access to the representation of a class](#Rc-member) * [C.4: Make a function a member only if it needs direct access to the representation of a class](#Rc-member)
* [C.5: Place helper functions in the same namespace as the class they support](#Rc-member) * [C.5: Place helper functions in the same namespace as the class they support](#Rc-helper)
* [C.6: Declare a member function that does not modify the state of its object `const`](#Rc-const) * [C.6: Declare a member function that does not modify the state of its object `const`](#Rc-const)
Subsections: Subsections:
@@ -2748,7 +2748,7 @@ The "helper functions" have no need for direct access to the representation of a
The snag is that many member functions that do not need to touch data members directly do. The snag is that many member functions that do not need to touch data members directly do.
<a name="Rc-member"></a> <a name="Rc-helper"></a>
### C.5: Place helper functions in the same namespace as the class they support ### C.5: Place helper functions in the same namespace as the class they support
**Reason**: A helper function is a function (usually supplied by the writer of a class) that does not need direct access to the representation of the class, **Reason**: A helper function is a function (usually supplied by the writer of a class) that does not need direct access to the representation of the class,