fork download
  1. #include <iostream>
  2.  
  3. template <class T>
  4. void f(T const & t)
  5. {
  6. std::cout << "in template: " << t << std::endl;
  7. }
  8.  
  9. //void f(int) = delete;
  10.  
  11. int main()
  12. {
  13. f(10.);
  14. f(1);
  15. return 0;
  16. }
Success #stdin #stdout 0s 2884KB
stdin
Standard input is empty
stdout
in template: 10
in template: 1