fork download
  1. void foo()
  2. {}
  3.  
  4. typedef void (*fn)();
  5.  
  6. template<fn f> struct X { X() { f(); }};
  7.  
  8. int main()
  9. {
  10. X<foo> a;
  11. }
Success #stdin #stdout 0s 2824KB
stdin
Standard input is empty
stdout
Standard output is empty