fork(1) download
  1. void foo( int ) {}
  2. double bar() { return 3.14; }
  3.  
  4. template< class R, class A >
  5. void test( R ( *method_p ) (A)) { }
  6. template< class R >
  7. void test( R ( *method_p ) ()) { }
  8.  
  9. int main(){
  10. test(foo);
  11. test(bar);
  12. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
Standard output is empty