added reference to C.137

This commit is contained in:
Bjarne Stroustrup 2017-04-30 12:18:42 -04:00
parent a6a087dfc5
commit b3584cfa5f

View File

@ -6983,6 +6983,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?srid=tzNb) with an explanation.
##### Note ##### Note