1 template<typename T> 2 int foo(T t1) { 3 return int(t1); 4 } 5 6 int main() { 7 return foo(42); 8 } 9