fork download
  1. template<class F, class T>
  2. void foo(F f, T x){
  3. f(x);
  4. }
  5.  
  6. void bar(int){}
  7. void bar(double){}
  8.  
  9. int main(){
  10. foo<void(int)>(bar, 5);
  11. }
Success #stdin #stdout 0s 2824KB
stdin
Standard input is empty
stdout
Standard output is empty