#include <iostream>
#include <stack>
using namespace std;
//当函数模板隐式调用时,若同时存在模板函数和非模板函数,优先匹配非模板函数
template<typename T>
inline void foo(T a) {
cout << "in template\t" << a << endl;
}
inline void foo(int a) {
cout << "in specific\t" << a << endl;
}
int main()
{
foo("hello");
foo(9); //优先匹配非模板函数
int ttt = 0;
return 0;
}