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
about 7 years ago
C++
clang 6.0.1
Author
anonymous
about 7 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/clang-6.0.1/include -std=gnu++2a prog.cc:44:5: error: no matching function for call to 'prev'
std::prev(i1);
^~~~~~~~~
/opt/wandbox/clang-6.0.1/include/c++/v1/iterator:616:1: note: candidate template ignored: requirement '__is_bidirectional_iterator<node_iterator>::value' was not satisfied [with _BidirectionalIter = node_iterator]
prev(_BidirectionalIter __x,
^
1 error generated.