os/ossrv/genericopenlibs/cppstdlib/stl/test/compiler/ttei7.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/genericopenlibs/cppstdlib/stl/test/compiler/ttei7.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,31 @@
     1.4 +/*
     1.5 + * It is known that this code not compiled by following compilers:
     1.6 + *
     1.7 + *   MSVC 6
     1.8 + *
     1.9 + * It is known that this code compiled by following compilers:
    1.10 + *
    1.11 + *   MSVC 8 Beta
    1.12 + */
    1.13 +
    1.14 +/*
    1.15 + * This code represent what STLport waits from a compiler which support
    1.16 + * the rebind member template class technique (!_STLP_DONT_SUPPORT_REBIND_MEMBER_TEMPLATE)
    1.17 + */
    1.18 +
    1.19 +template <typename T1>
    1.20 +struct A
    1.21 +{
    1.22 +  template <typename T2>
    1.23 +  struct B
    1.24 +  {
    1.25 +    typedef A<T2> _Type;
    1.26 +  };
    1.27 +};
    1.28 +
    1.29 +
    1.30 +template <typename T, typename A>
    1.31 +struct C
    1.32 +{
    1.33 +  typedef typename A:: template B<T>::_Type _ATType;
    1.34 +};