fork(3) 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. int foo(const char*, const char*) { return 3; }
  9.  
  10.  
  11. int main()
  12. {
  13. std::cout << foo("Hello", "World") << std::endl;
  14. std::cout << foo("Hello", "World!") << std::endl;
  15. }
  16.  
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
3
3