Author
anonymous
over 5 years ago
Language
C++
Compiler
clang 9.0.0
Options
Warnings
Boost 1.72.0
C++17
-pedantic-errors
Author
anonymous
over 5 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/clang-9.0.0/include -std=c++17 -pedantic-errors
In file included from prog.cc:1:
./doubly_linked_list.hh:358:5: error: unknown type name 'consse_iterator'; did you mean 'const_iterator'?
consse_iterator rend() const { return const_reverse_iterator(begin()); }
^~~~~~~~~~~~~~~
const_iterator
./doubly_linked_list.hh:75:11: note: 'const_iterator' declared here
using const_iterator = Iterator<const T>;
^
./doubly_linked_list.hh:358:21: error: functions that differ only in their return type cannot be overloaded
consse_iterator rend() const { return const_reverse_iterator(begin()); }
~~~~~~~~~~~~~~~ ^
./doubly_linked_list.hh:357:28: note: previous definition is here
const_reverse_iterator rend() const { return const_reverse_iterator(begin()); }
~~~~~~~~~~~~~~~~~~~~~~ ^
./doubly_linked_list.hh:249:16: warning: unused variable 'count' [-Wunused-variable]
size_t count = 0;
^
./doubly_linked_list.hh:330:30: error: cannot throw object of incomplete type 'void'
if (index >= size()) throw throw std::out_of_range("index out of bounds");
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 3 errors generated.
Exit Code:
1