From Jason Turner

[class.nested.type]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmppn10fjx2/{from.md → to.md} +0 -23
tmp/tmppn10fjx2/{from.md → to.md} RENAMED
@@ -1,23 +0,0 @@
1
- ### Nested type names <a id="class.nested.type">[[class.nested.type]]</a>
2
-
3
- Type names obey exactly the same scope rules as other names. In
4
- particular, type names defined within a class definition cannot be used
5
- outside their class without qualification.
6
-
7
- [*Example 1*:
8
-
9
- ``` cpp
10
- struct X {
11
- typedef int I;
12
- class Y { ... };
13
- I a;
14
- };
15
-
16
- I b; // error
17
- Y c; // error
18
- X::Y d; // OK
19
- X::I e; // OK
20
- ```
21
-
22
- — *end example*]
23
-