Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenpartial_spec.cpp
Go to the documentation of this file.
00001 /* 00002 * It is known that this code not compiled by following compilers: 00003 * 00004 * MSVC 6 00005 * 00006 * It is known that this code compiled by following compilers: 00007 * 00008 * MSVC 8 00009 * gcc 4.1.1 00010 */ 00011 00012 /* 00013 * This code represent what STLport waits from a compiler which support 00014 * the partial template function ordering (!_STLP_NO_FUNCTION_TMPL_PARTIAL_ORDER) 00015 */ 00016 00017 template <class T1> 00018 struct template_struct {}; 00019 00020 template <class T1> 00021 int func(T1 p1); 00022 00023 template <class T1> 00024 int func(template_struct<T1>); 00025 00026 00027 int foo() 00028 { 00029 int tmp1 = 0; 00030 template_struct<int> tmp2; 00031 func(tmp1); 00032 func(tmp2); 00033 return 0; 00034 } Generated on Wed May 23 2012 04:33:06 for ReactOS by
1.7.6.1
|