tmp/tmpefrded4d/{from.md → to.md}
RENAMED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
## Multiple access <a id="class.paths">[[class.paths]]</a>
|
| 2 |
|
| 3 |
If a name can be reached by several paths through a multiple inheritance
|
| 4 |
graph, the access is that of the path that gives most access.
|
| 5 |
|
|
|
|
|
|
|
| 6 |
``` cpp
|
| 7 |
class W { public: void f(); };
|
| 8 |
class A : private virtual W { };
|
| 9 |
class B : public virtual W { };
|
| 10 |
class C : public A, public B {
|
|
@@ -13,5 +15,7 @@ class C : public A, public B {
|
|
| 13 |
```
|
| 14 |
|
| 15 |
Since `W::f()` is available to `C::f()` along the public path through
|
| 16 |
`B`, access is allowed.
|
| 17 |
|
|
|
|
|
|
|
|
|
| 1 |
## Multiple access <a id="class.paths">[[class.paths]]</a>
|
| 2 |
|
| 3 |
If a name can be reached by several paths through a multiple inheritance
|
| 4 |
graph, the access is that of the path that gives most access.
|
| 5 |
|
| 6 |
+
[*Example 1*:
|
| 7 |
+
|
| 8 |
``` cpp
|
| 9 |
class W { public: void f(); };
|
| 10 |
class A : private virtual W { };
|
| 11 |
class B : public virtual W { };
|
| 12 |
class C : public A, public B {
|
|
|
|
| 15 |
```
|
| 16 |
|
| 17 |
Since `W::f()` is available to `C::f()` along the public path through
|
| 18 |
`B`, access is allowed.
|
| 19 |
|
| 20 |
+
— *end example*]
|
| 21 |
+
|