#include <iostream> struct X {}; template <class T>void bar(T t){ foo(t);} void foo(X x){ std::cout << "Foo\n";} int main(){ X x; bar(x);}
Standard input is empty
Foo
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!