\#include "stdafx.h"\
\
template\<class T\>\
class C{\
public:\
template\<class U\>\
void fun( U u ){ cout \<\< "template" \<\< endl; }\
\
void fun( double f ){ cout \<\< "double" \<\< endl; }\
};\
\
int main( int argc, char \*argv[] ){\
C\<float\> cf;\
cf.fun(12.0f);\
}
**// template**
\#include "stdafx.h"\
\
template\<class T\>\
class C{\
public:\
template\<class U\>\
void fun(){ cout \<\< "template" \<\< endl; }\
\
void fun(){ cout \<\< "double" \<\< endl; }\
};\
\
int main( int argc, char \*argv[] ){\
C\<float\> cf;\
cf.fun();\
}
**// double\
可见,优先调用built-in function.**