genericopenlibs/cppstdlib/stl/test/compiler/ttei6.cpp
changeset 31 ce057bb09d0b
child 34 5fae379060a7
equal deleted inserted replaced
30:e20de85af2ee 31:ce057bb09d0b
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 /*
       
    18  * It is known that this code not compiled by following compilers:
       
    19  *
       
    20  * It is known that this code compiled by following compilers:
       
    21  *
       
    22  *   MSVC 6
       
    23  *   MSVC 8 Beta
       
    24  */
       
    25 
       
    26 /*
       
    27  * This code represent what STLport waits from a compiler which support
       
    28  * member template classes (!_STLP_NO_MEMBER_TEMPLATE_CLASSES)
       
    29  */
       
    30 
       
    31 template <typename T1>
       
    32 struct A
       
    33 {
       
    34   template <typename T2>
       
    35   struct B
       
    36   {
       
    37     typedef T2 _Type;
       
    38   };
       
    39 };
       
    40 
       
    41 
       
    42 template <typename T1, typename T2>
       
    43 struct C
       
    44 {
       
    45   typedef typename A<T1>:: template B<T2>::_Type ABType;
       
    46 };