author | sl@SLION-WIN7.fritz.box |
Fri, 15 Jun 2012 03:10:57 +0200 | |
changeset 0 | bde4ae8d615e |
permissions | -rw-r--r-- |
1 /*
2 * It is known that this code not compiled by following compilers:
3 * gcc 2.95.3
4 * gcc 3.3.3
5 * gcc 3.4.1
6 *
7 * It is known that this code compiled by following compilers:
8 *
9 * MSVC 6
10 * MSVC 8 Beta
11 */
13 /*
14 * Indeed this code is wrong: explicit template specialization
15 * have to appear out-of-class.
16 *
17 */
19 struct A
20 {
21 private:
22 struct B
23 {
24 template <typename T>
25 static void f( T& ) {}
27 template <bool V>
28 struct C
29 {
30 template <typename T>
31 static void f( T& ) {}
32 };
34 template <>
35 struct C<true>
36 {
37 template <typename T>
38 static void f( T& ) {}
39 };
40 };
41 };