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