This code is so simple, shouldnt it compile? I am really lost with this one.
#include template foo(T f) { std::cout &
You're missing a return type for foo. Presumably, you want:
foo
vvvv template<typename T> void foo(T f) { ^^^^ std::cout << f << std::endl; }