tmp/tmp9cawyrgg/{from.md → to.md}
RENAMED
|
@@ -10,12 +10,12 @@ instantiation [[temp.inst]]. For example,
|
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
template<class T> struct A {
|
| 13 |
class B;
|
| 14 |
};
|
| 15 |
-
A<int>::B* b1; // OK
|
| 16 |
template<class T> class A<T>::B { };
|
| 17 |
-
A<int>::B b2; // OK
|
| 18 |
```
|
| 19 |
|
| 20 |
— *end note*]
|
| 21 |
|
|
|
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
template<class T> struct A {
|
| 13 |
class B;
|
| 14 |
};
|
| 15 |
+
A<int>::B* b1; // OK, requires A to be defined but not A::B
|
| 16 |
template<class T> class A<T>::B { };
|
| 17 |
+
A<int>::B b2; // OK, requires A::B to be defined
|
| 18 |
```
|
| 19 |
|
| 20 |
— *end note*]
|
| 21 |
|