fork(19) download
  1. #include <iostream>
  2.  
  3. template <typename T>
  4. int foo(T&, T&) { return 1; }
  5.  
  6. int foo(char*, char*) { return 2; }
  7.  
  8.  
  9. int main()
  10. {
  11. std::cout << foo("Hello", "World") << std::endl;
  12. std::cout << foo("Hello", "World!") << std::endl;
  13. }
  14.  
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
1
2