genericopenlibs/cppstdlib/stl/test/compiler/ttei5.cpp
author Simon Howkins <simonh@symbian.org>
Thu, 28 Oct 2010 12:05:33 +0100
branchRCL_3
changeset 78 5b3c983434ca
parent 0 e4d67989cc36
child 18 47c74d1534e1
permissions -rw-r--r--
Commented out export of missing CRML source file to avoid build error. There are no known side effects of this file being missing, so this seems a reasonable way to avoid the build error.

/*
 * It is known that this code not compiled by following compilers:
 *   gcc 3.4.1
 *
 * It is known that this code compiled by following compilers:
 *   gcc 2.95.3
 *   gcc 3.3.3
 *
 *   MSVC 6
 *   MSVC 8 Beta
 */

/*
 * Indeed this code is wrong: explicit template specialization
 * have to appear out-of-class.
 *
 */

struct A
{
  private:
    struct B
    {
        template <typename T>
        static void f( T& ) {}

        template <bool V>
        struct C
        {
            template <typename T>
            static void f( T& ) {}
        };

        template <>
        struct C<true>
        {
            template <typename T>
            static void f( T& ) {}
        };
    };
};