template <typename F>
void f(F g = 10)
{
}
int main()
{
f();
return 0;
}
dGVtcGxhdGUgPHR5cGVuYW1lIEY+CnZvaWQgZihGIGcgPSAxMCkKewp9CgoKaW50IG1haW4oKQp7CiAgZigpOwogIHJldHVybiAwOwp9Cg==
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();
^