#include <iostream>
void func(auto pt) { }
int main() {
func();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdm9pZCBmdW5jKGF1dG8gcHQpIHsgfQoKaW50IG1haW4oKSB7CglmdW5jKCk7CglyZXR1cm4gMDsKfQ==
prog.cpp: In function 'int main()':
prog.cpp:6:7: error: no matching function for call to 'func()'
func();
^
prog.cpp:6:7: note: candidate is:
prog.cpp:3:6: note: template<class auto:1> void func(auto:1)
void func(auto pt) { }
^
prog.cpp:3:6: note: template argument deduction/substitution failed:
prog.cpp:6:7: note: candidate expects 1 argument, 0 provided
func();
^