tmp/tmpaf54464g/{from.md → to.md}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
### Access specifiers <a id="class.access.spec">[[class.access.spec]]</a>
|
| 2 |
|
| 3 |
-
Member declarations can be labeled by an *access-specifier*
|
| 4 |
-
[[class.derived]]
|
| 5 |
|
| 6 |
``` bnf
|
| 7 |
access-specifier ':' member-specificationₒₚₜ
|
| 8 |
```
|
| 9 |
|
|
@@ -41,13 +41,10 @@ public:
|
|
| 41 |
};
|
| 42 |
```
|
| 43 |
|
| 44 |
— *end example*]
|
| 45 |
|
| 46 |
-
[*Note 1*: The effect of access control on the order of allocation of
|
| 47 |
-
data members is specified in [[expr.rel]]. — *end note*]
|
| 48 |
-
|
| 49 |
When a member is redeclared within its class definition, the access
|
| 50 |
specified at its redeclaration shall be the same as at its initial
|
| 51 |
declaration.
|
| 52 |
|
| 53 |
[*Example 3*:
|
|
@@ -62,11 +59,11 @@ private:
|
|
| 62 |
};
|
| 63 |
```
|
| 64 |
|
| 65 |
— *end example*]
|
| 66 |
|
| 67 |
-
[*Note
|
| 68 |
find the injected-class-name instead of the name of the base class in
|
| 69 |
the scope in which it was declared. The injected-class-name might be
|
| 70 |
less accessible than the name of the base class in the scope in which it
|
| 71 |
was declared. — *end note*]
|
| 72 |
|
|
|
|
| 1 |
### Access specifiers <a id="class.access.spec">[[class.access.spec]]</a>
|
| 2 |
|
| 3 |
+
Member declarations can be labeled by an *access-specifier*
|
| 4 |
+
[[class.derived]]:
|
| 5 |
|
| 6 |
``` bnf
|
| 7 |
access-specifier ':' member-specificationₒₚₜ
|
| 8 |
```
|
| 9 |
|
|
|
|
| 41 |
};
|
| 42 |
```
|
| 43 |
|
| 44 |
— *end example*]
|
| 45 |
|
|
|
|
|
|
|
|
|
|
| 46 |
When a member is redeclared within its class definition, the access
|
| 47 |
specified at its redeclaration shall be the same as at its initial
|
| 48 |
declaration.
|
| 49 |
|
| 50 |
[*Example 3*:
|
|
|
|
| 59 |
};
|
| 60 |
```
|
| 61 |
|
| 62 |
— *end example*]
|
| 63 |
|
| 64 |
+
[*Note 1*: In a derived class, the lookup of a base class name will
|
| 65 |
find the injected-class-name instead of the name of the base class in
|
| 66 |
the scope in which it was declared. The injected-class-name might be
|
| 67 |
less accessible than the name of the base class in the scope in which it
|
| 68 |
was declared. — *end note*]
|
| 69 |
|