fork download
  1. #include <iostream>
  2.  
  3. void f(const char* b)
  4. {
  5. std::cout<<"char* called"<<std::endl;
  6. }
  7.  
  8. template <class T>
  9. void f(const char* format, T...)
  10. {
  11. std::cout<<"char*,... called"<<std::endl;
  12. }
  13.  
  14. int main() {
  15. f("hello");
  16. f("hello",1, 2.0);
  17. return 0;
  18. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
char* called
char*,... called