os/ossrv/genericopenlibs/cppstdlib/stl/test/compiler/ttei6.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2  * It is known that this code not compiled by following compilers:
     3  *
     4  * It is known that this code compiled by following compilers:
     5  *
     6  *   MSVC 6
     7  *   MSVC 8 Beta
     8  */
     9 
    10 /*
    11  * This code represent what STLport waits from a compiler which support
    12  * member template classes (!_STLP_NO_MEMBER_TEMPLATE_CLASSES)
    13  */
    14 
    15 template <typename T1>
    16 struct A
    17 {
    18   template <typename T2>
    19   struct B
    20   {
    21     typedef T2 _Type;
    22   };
    23 };
    24 
    25 
    26 template <typename T1, typename T2>
    27 struct C
    28 {
    29   typedef typename A<T1>:: template B<T2>::_Type ABType;
    30 };