Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc: In function 'int main()':
prog.cc:11:10: error: no matching function for call to 'foo(std::vector<int>&)'
foo(x);
^
prog.cc:6:25: note: candidate: 'template<class> void foo()'
template<typename> void foo();
^~~
prog.cc:6:25: note: template argument deduction/substitution failed:
prog.cc:11:10: note: candidate expects 0 arguments, 1 provided
foo(x);
^
Exit Code:
1