From 4c73b0bff10530fa4e02b62500e0c48f169a1d0e Mon Sep 17 00:00:00 2001 From: Kazutoshi SATODA Date: Tue, 22 Sep 2015 21:16:06 +0900 Subject: [PATCH] Give an unique anchor name to C.5 "#Rc-helper" instead of the same one with C.4 "#Rc-member". --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 13d6644..6bea483 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -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.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.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) 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. - + ### 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,