genericopenlibs/cppstdlib/stl/test/compiler/ttei7.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  *   MSVC 6
       
    21  *
       
    22  * It is known that this code compiled by following compilers:
       
    23  *
       
    24  *   MSVC 8 Beta
       
    25  */
       
    26 
       
    27 /*
       
    28  * This code represent what STLport waits from a compiler which support
       
    29  * the rebind member template class technique (!_STLP_DONT_SUPPORT_REBIND_MEMBER_TEMPLATE)
       
    30  */
       
    31 
       
    32 template <typename T1>
       
    33 struct A
       
    34 {
       
    35   template <typename T2>
       
    36   struct B
       
    37   {
       
    38     typedef A<T2> _Type;
       
    39   };
       
    40 };
       
    41 
       
    42 
       
    43 template <typename T, typename A>
       
    44 struct C
       
    45 {
       
    46   typedef typename A:: template B<T>::_Type _ATType;
       
    47 };