#include <iostream> using namespace std; void foo(int){} template <class> struct a { void bar() { foo(); } }; int main() { a<int> aint; return 0; }
Standard input is empty
prog.cpp: In member function 'void a< <template-parameter-1-1> >::bar()':
prog.cpp:8:20: error: too few arguments to function 'void foo(int)'
void bar() { foo(); }
^
prog.cpp:4:6: note: declared here
void foo(int){}
^
Standard output is empty