fork download
  1. #include <iostream>
  2.  
  3. template <typename T>
  4. void func(T a) {
  5. std::cout << a <<std::endl;
  6. }
  7.  
  8. template <typename T>
  9. void func(T a, T b) {
  10. func(a);
  11. func(b);
  12. }
  13.  
  14. int main() {
  15. func(1, 2);
  16. }
Success #stdin #stdout 0s 4368KB
stdin
Standard input is empty
stdout
1
2