Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

$
prog.cc: In function 'int main()':
prog.cc:11:9: error: no matching function for call to 'foo(std::vector<__gnu_cxx::__normal_iterator<int*, std::vector<int> >, std::allocator<__gnu_cxx::__normal_iterator<int*, 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:9: note:   candidate expects 0 arguments, 1 provided
    foo(x);
         ^
Exit Code:
1