fork download
  1. #include <iostream>
  2.  
  3.  
  4. struct X {};
  5.  
  6.  
  7. template <class T>
  8. void bar(T t)
  9. {
  10. foo(t);
  11. }
  12.  
  13.  
  14. void foo(X x)
  15. {
  16. std::cout << "Foo\n";
  17. }
  18.  
  19. int main()
  20. {
  21. X x;
  22. bar(x);
  23. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
Foo