author | sl |
Tue, 10 Jun 2014 14:32:02 +0200 | |
changeset 1 | 260cb5ec6c19 |
permissions | -rw-r--r-- |
sl@0 | 1 |
/* |
sl@0 | 2 |
* It is known that this code not compiled by following compilers: |
sl@0 | 3 |
* |
sl@0 | 4 |
* It is known that this code compiled by following compilers: |
sl@0 | 5 |
* |
sl@0 | 6 |
* MSVC 6 |
sl@0 | 7 |
* MSVC 8 Beta |
sl@0 | 8 |
*/ |
sl@0 | 9 |
|
sl@0 | 10 |
/* |
sl@0 | 11 |
* This code represent what STLport waits from a compiler which support |
sl@0 | 12 |
* member template classes (!_STLP_NO_MEMBER_TEMPLATE_CLASSES) |
sl@0 | 13 |
*/ |
sl@0 | 14 |
|
sl@0 | 15 |
template <typename T1> |
sl@0 | 16 |
struct A |
sl@0 | 17 |
{ |
sl@0 | 18 |
template <typename T2> |
sl@0 | 19 |
struct B |
sl@0 | 20 |
{ |
sl@0 | 21 |
typedef T2 _Type; |
sl@0 | 22 |
}; |
sl@0 | 23 |
}; |
sl@0 | 24 |
|
sl@0 | 25 |
|
sl@0 | 26 |
template <typename T1, typename T2> |
sl@0 | 27 |
struct C |
sl@0 | 28 |
{ |
sl@0 | 29 |
typedef typename A<T1>:: template B<T2>::_Type ABType; |
sl@0 | 30 |
}; |