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 |
* MSVC 6 |
sl@0 | 5 |
* |
sl@0 | 6 |
* It is known that this code compiled by following compilers: |
sl@0 | 7 |
* |
sl@0 | 8 |
* MSVC 8 Beta |
sl@0 | 9 |
*/ |
sl@0 | 10 |
|
sl@0 | 11 |
/* |
sl@0 | 12 |
* This code represent what STLport waits from a compiler which support |
sl@0 | 13 |
* the rebind member template class technique (!_STLP_DONT_SUPPORT_REBIND_MEMBER_TEMPLATE) |
sl@0 | 14 |
*/ |
sl@0 | 15 |
|
sl@0 | 16 |
template <typename T1> |
sl@0 | 17 |
struct A |
sl@0 | 18 |
{ |
sl@0 | 19 |
template <typename T2> |
sl@0 | 20 |
struct B |
sl@0 | 21 |
{ |
sl@0 | 22 |
typedef A<T2> _Type; |
sl@0 | 23 |
}; |
sl@0 | 24 |
}; |
sl@0 | 25 |
|
sl@0 | 26 |
|
sl@0 | 27 |
template <typename T, typename A> |
sl@0 | 28 |
struct C |
sl@0 | 29 |
{ |
sl@0 | 30 |
typedef typename A:: template B<T>::_Type _ATType; |
sl@0 | 31 |
}; |