Language
C++
Compiler
clang 6.0.1
Options
Warnings
Boost 1.67.0
C++2a(GNU)
no pedantic
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/clang-6.0.1/include -std=gnu++2a Exit Code:
1
Author
anonymous
almost 8 years ago
C++
clang 6.0.1
Author
anonymous
almost 8 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/clang-6.0.1/include -std=gnu++2a prog.cc:14:5: error: no matching function for call to 'foo'
foo( std::iterator_traits<iter_t>::iterator_category{} );
^~~
prog.cc:6:5: note: candidate function not viable: no known conversion from 'std::iterator_traits<iter_t>::iterator_category' (aka 'std::__1::input_iterator_tag') to 'std::random_access_iterator_tag' for 1st argument
int foo(std::random_access_iterator_tag);
^
1 error generated.