fork download
  1. #include <iostream>
  2. #include <stdio.h>
  3.  
  4. void foo(const long) { std::cout << "long" << std::endl; }
  5.  
  6. template<typename _type_>
  7. void omg()
  8. {
  9. short i = 0;
  10. foo(i);
  11. }
  12.  
  13. void foo(const short) { std::cout << "short" << std::endl; }
  14.  
  15. int main(int, char*[])
  16. {
  17. omg<int>();
  18.  
  19. getchar();
  20. return 0;
  21. }
Success #stdin #stdout 0s 2832KB
stdin
Standard input is empty
stdout
long