template <typename F> void f(F g = 10) { } int main() { f(); return 0; }
Standard input is empty
prog.cpp: In function 'int main()':
prog.cpp:9:5: error: no matching function for call to 'f()'
f();
^
prog.cpp:2:6: note: candidate: template<class F> void f(F)
void f(F g = 10)
^
prog.cpp:2:6: note: template argument deduction/substitution failed:
prog.cpp:9:5: note: couldn't deduce template parameter 'F'
f();
^
Standard output is empty