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