Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenttei5.cpp
Go to the documentation of this file.
00001 /* 00002 * It is known that this code not compiled by following compilers: 00003 * gcc 3.4.1 00004 * gcc 4.1.1 00005 * 00006 * It is known that this code compiled by following compilers: 00007 * gcc 2.95.3 00008 * gcc 3.3.3 00009 * 00010 * MSVC 6 00011 * MSVC 8 Beta 00012 */ 00013 00014 /* 00015 * Indeed this code is wrong: explicit template specialization 00016 * have to appear out-of-class. 00017 * 00018 */ 00019 00020 struct A 00021 { 00022 private: 00023 struct B 00024 { 00025 template <typename T> 00026 static void f( T& ) {} 00027 00028 template <bool V> 00029 struct C 00030 { 00031 template <typename T> 00032 static void f( T& ) {} 00033 }; 00034 00035 template <> 00036 struct C<true> 00037 { 00038 template <typename T> 00039 static void f( T& ) {} 00040 }; 00041 }; 00042 }; 00043 Generated on Fri May 25 2012 04:33:43 for ReactOS by
1.7.6.1
|