aboutsummaryrefslogtreecommitdiff
path: root/test/compiler/ttei6.cpp
blob: 6e51e22c8d60cf81d553b6b47c4ba802d2738f97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * It is known that this code not compiled by following compilers:
 *
 * It is known that this code compiled by following compilers:
 *
 *   MSVC 6
 *   MSVC 8 Beta
 */

/*
 * This code represent what STLport waits from a compiler which support
 * member template classes (!_STLP_NO_MEMBER_TEMPLATE_CLASSES)
 */

template <typename T1>
struct A
{
  template <typename T2>
  struct B
  {
    typedef T2 _Type;
  };
};


template <typename T1, typename T2>
struct C
{
  typedef typename A<T1>:: template B<T2>::_Type ABType;
};