From 4dfe88b716166ab7660f70a56f38380b5a739667 Mon Sep 17 00:00:00 2001 From: Malcolm Parsons Date: Wed, 24 May 2017 11:15:58 +0100 Subject: [PATCH] Fix broken links (#935) --- CppCoreGuidelines.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 2bbd2ce..09b7a3c 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -67,7 +67,7 @@ You can sample rules for specific language features: [prefer initialization](#Rc-initialize) -- [copy](#Rc-copy-semantics) -- [move](#Rc-move-semantics) -- -[other operations](Rc-matched) -- +[other operations](#Rc-matched) -- [default](#Rc-eqdefault) * `class`: [data](#Rc-org) -- @@ -108,7 +108,7 @@ You can sample rules for specific language features: [may not fail](#Rc-dtor-fail) * exception: [errors](#S-errors) -- -[`throw`](Re-throw) -- +[`throw`](#Re-throw) -- [for errors only](#Re-errors) -- [`noexcept`](#Re-noexcept) -- [minimize `try`](#Re-catch) -- @@ -131,7 +131,7 @@ You can sample rules for specific language features: [lambdas](#Rf-capture-vs-overload) * `inline`: [small functions](#Rf-inline) -- -[in headers](Rs-inline) +[in headers](#Rs-inline) * initialization: [always](#Res-always) -- [prefer `{}`](#Res-list) -- @@ -142,7 +142,7 @@ You can sample rules for specific language features: * lambda expression: [when to use](#SS-lambdas) * operator: -[conventional](Ro-conventional) -- +[conventional](#Ro-conventional) -- [avoid conversion operators](#Ro-conventional) -- [and lambdas](#Ro-lambda) * `public`, `private`, and `protected`: @@ -166,7 +166,7 @@ You can sample rules for specific language features: * `virtual`: [interfaces](#Ri-abstract) -- [not `virtual`](#Rc-concrete) -- -[destructor](Rc-dtor-virtual) -- +[destructor](#Rc-dtor-virtual) -- [never fail](#Rc-dtor-fail) You can look at design concepts used to express the rules: @@ -7140,7 +7140,7 @@ Factoring out `Utility` makes sense if many derived classes share significant "i Obviously, the example is too "theoretical", but it is hard to find a *small* realistic example. `Interface` is the root of an [interface hierarchy](#Rh-abstract) -and `Utility` is the root of an [implementation hierarchy](Rh-kind). +and `Utility` is the root of an [implementation hierarchy](#Rh-kind). Here is [a slightly more realistic example](https://www.quora.com/What-are-the-uses-and-advantages-of-virtual-base-class-in-C%2B%2B/answer/Lance-Diduck) with an explanation. ##### Note