fork(1) download
  1. struct S {
  2. void f() {}
  3. };
  4.  
  5. void call(S* s, void (S::*fn)())
  6. {
  7. (s->*fn)();
  8. delete s;
  9. }
  10.  
  11. int main() {
  12. call(new S, &S::f);
  13. }
Success #stdin #stdout 0s 3464KB
stdin
Standard input is empty
stdout
Standard output is empty