fork download
  1. void f(int=0) ;
  2.  
  3. int main() {
  4. f(); // ok
  5. (+f)(2);// ok
  6. (*+f)();// ok c++11; error with c++14: too few arguments to function
  7. return 0;
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:6:11: error: too few arguments to function
     (*+f)();// ok c++11; error with c++14: too few arguments to function
           ^
stdout
Standard output is empty