#include <algorithm>#include <functional>#include <iostream>#include <memory>#include <string>#include <type_traits>#include <utility> void bar(int, int = 42); template<typename F>void call(F && f) { f(1);} int main(){ call(bar);}
Standard input is empty
prog.cpp: In instantiation of 'void call(F&&) [with F = void (&)(int, int)]': prog.cpp:19:10: required from here prog.cpp:14:5: error: too few arguments to function f(1); ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!