fork(1) download
  1. void foo(const int *n) { }
  2.  
  3. template <typename ...Args>
  4. void bar(void (*func)(Args...), Args... args) { func(args...); }
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8. int n = 42;
  9. bar(foo, static_cast<const int *>(&n));
  10. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Standard output is empty