Language
C++
Compiler
gcc HEAD 8.0.0 20170830 (experimental)
Options
Warnings
Boost 1.65.0
C++1z(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.65.0/gcc-head/include -std=gnu++1z
Exit Code:
1
Author
anonymous
over 7 years ago
C++
gcc HEAD 8.0.0 20170830 (experimental)
Author
anonymous
over 7 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.65.0/gcc-head/include -std=gnu++1z
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);
^