mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Fix broken links (#935)
This commit is contained in:
parent
531a8a5ebd
commit
4dfe88b716
|
@ -67,7 +67,7 @@ You can sample rules for specific language features:
|
||||||
[prefer initialization](#Rc-initialize) --
|
[prefer initialization](#Rc-initialize) --
|
||||||
[copy](#Rc-copy-semantics) --
|
[copy](#Rc-copy-semantics) --
|
||||||
[move](#Rc-move-semantics) --
|
[move](#Rc-move-semantics) --
|
||||||
[other operations](Rc-matched) --
|
[other operations](#Rc-matched) --
|
||||||
[default](#Rc-eqdefault)
|
[default](#Rc-eqdefault)
|
||||||
* `class`:
|
* `class`:
|
||||||
[data](#Rc-org) --
|
[data](#Rc-org) --
|
||||||
|
@ -108,7 +108,7 @@ You can sample rules for specific language features:
|
||||||
[may not fail](#Rc-dtor-fail)
|
[may not fail](#Rc-dtor-fail)
|
||||||
* exception:
|
* exception:
|
||||||
[errors](#S-errors) --
|
[errors](#S-errors) --
|
||||||
[`throw`](Re-throw) --
|
[`throw`](#Re-throw) --
|
||||||
[for errors only](#Re-errors) --
|
[for errors only](#Re-errors) --
|
||||||
[`noexcept`](#Re-noexcept) --
|
[`noexcept`](#Re-noexcept) --
|
||||||
[minimize `try`](#Re-catch) --
|
[minimize `try`](#Re-catch) --
|
||||||
|
@ -131,7 +131,7 @@ You can sample rules for specific language features:
|
||||||
[lambdas](#Rf-capture-vs-overload)
|
[lambdas](#Rf-capture-vs-overload)
|
||||||
* `inline`:
|
* `inline`:
|
||||||
[small functions](#Rf-inline) --
|
[small functions](#Rf-inline) --
|
||||||
[in headers](Rs-inline)
|
[in headers](#Rs-inline)
|
||||||
* initialization:
|
* initialization:
|
||||||
[always](#Res-always) --
|
[always](#Res-always) --
|
||||||
[prefer `{}`](#Res-list) --
|
[prefer `{}`](#Res-list) --
|
||||||
|
@ -142,7 +142,7 @@ You can sample rules for specific language features:
|
||||||
* lambda expression:
|
* lambda expression:
|
||||||
[when to use](#SS-lambdas)
|
[when to use](#SS-lambdas)
|
||||||
* operator:
|
* operator:
|
||||||
[conventional](Ro-conventional) --
|
[conventional](#Ro-conventional) --
|
||||||
[avoid conversion operators](#Ro-conventional) --
|
[avoid conversion operators](#Ro-conventional) --
|
||||||
[and lambdas](#Ro-lambda)
|
[and lambdas](#Ro-lambda)
|
||||||
* `public`, `private`, and `protected`:
|
* `public`, `private`, and `protected`:
|
||||||
|
@ -166,7 +166,7 @@ You can sample rules for specific language features:
|
||||||
* `virtual`:
|
* `virtual`:
|
||||||
[interfaces](#Ri-abstract) --
|
[interfaces](#Ri-abstract) --
|
||||||
[not `virtual`](#Rc-concrete) --
|
[not `virtual`](#Rc-concrete) --
|
||||||
[destructor](Rc-dtor-virtual) --
|
[destructor](#Rc-dtor-virtual) --
|
||||||
[never fail](#Rc-dtor-fail)
|
[never fail](#Rc-dtor-fail)
|
||||||
|
|
||||||
You can look at design concepts used to express the rules:
|
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.
|
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)
|
`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.
|
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
|
##### Note
|
||||||
|
|
Loading…
Reference in New Issue
Block a user