fork download
  1. void reg( void ( *invoker )( ... ), int args ) {
  2.  
  3. }
  4.  
  5. void foo() {}
  6.  
  7.  
  8. int main() {
  9. reg(&foo, 32);
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:9: error: invalid conversion from ‘void (*)()’ to ‘void (*)(...)’
prog.cpp:9: error:   initializing argument 1 of ‘void reg(void (*)(...), int)’
stdout

Standard output is empty