|
1141 | 1141 | \indextext{scope name hiding and}%
|
1142 | 1142 | \indextext{name hiding}%
|
1143 | 1143 | \indextext{hiding|see{name hiding}}%
|
1144 |
| -A name can be hidden by an explicit declaration of that same name in a |
1145 |
| -nested declarative region or derived class\iref{class.member.lookup}. |
| 1144 | +A declaration of a name in a nested declarative region |
| 1145 | +hides a declaration of the same name in an enclosing declarative region; |
| 1146 | +see \ref{basic.scope.declarative} and \ref{basic.lookup.unqual}. |
1146 | 1147 |
|
1147 | 1148 | \pnum
|
1148 | 1149 | \indextext{name hiding}%
|
1149 |
| -A class name\iref{class.name} or enumeration name\iref{dcl.enum} can |
1150 |
| -be hidden by the name of a variable, data member, function, or enumerator declared in |
1151 |
| -the same scope. If a class or enumeration name and a variable, data member, function, |
1152 |
| -or enumerator are declared in the same scope (in any order) with the |
1153 |
| -same name, the class or enumeration name is hidden wherever the variable, data member, |
| 1150 | +If a class name\iref{class.name} or enumeration name\iref{dcl.enum} and |
| 1151 | +a variable, data member, function, or enumerator |
| 1152 | +are declared in the same declarative region (in any order) with the |
| 1153 | +same name (excluding declarations made visible |
| 1154 | +via \grammarterm{using-directive}{s}\iref{basic.lookup.unqual}), |
| 1155 | +the class or enumeration name is hidden wherever the variable, data member, |
1154 | 1156 | function, or enumerator name is visible.
|
1155 | 1157 |
|
1156 | 1158 | \pnum
|
|
0 commit comments