Language
Compiler
Options
$
<stdin>:6:53: error: use of overloaded operator '!=' is ambiguous (with operand types 'std::reverse_iterator<int *>' and 'std::reverse_iterator<int *>')
bool f(std::reverse_iterator<int *> it) { return it != it; }
~~ ^ ~~
/usr/local/llvm-head/bin/../include/c++/v1/utility:218:1: note: candidate function [with _Tp = std::__1::reverse_iterator<int *>]
operator!=(const _Tp& __x, const _Tp& __y)
^
/usr/local/llvm-head/bin/../include/c++/v1/iterator:692:1: note: candidate function [with _Iter1 = int *, _Iter2 = int *]
operator!=(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
^
1 error generated.
Exit Code:
1