config: Fix child/const_child_iterator implementations of operator>

These were identical to operator<, which is clearly not intended. This
wouldn't trigger bugs in practice because they are currently unused
(tested by compiling with the definition removed).
This commit is contained in:
Ignacio R. Morelle 2015-08-19 01:35:00 -03:00
parent c3c0c9c2fd
commit 44312adfcb

View file

@ -143,7 +143,7 @@ public:
friend bool operator<(const this_type& a, const this_type& b) { return a.i_ < b.i_; }
friend bool operator<=(const this_type& a, const this_type& b) { return a.i_ <= b.i_; }
friend bool operator>=(const this_type& a, const this_type& b) { return a.i_ >= b.i_; }
friend bool operator>(const this_type& a, const this_type& b) { return a.i_ < b.i_; }
friend bool operator>(const this_type& a, const this_type& b) { return a.i_ > b.i_; }
this_type& operator+=(Itor::difference_type n) { i_ += n; return *this; }
this_type& operator-=(Itor::difference_type n) { i_ -= n; return *this; }
@ -184,7 +184,7 @@ public:
friend bool operator<(const this_type& a, const this_type& b) { return a.i_ < b.i_; }
friend bool operator<=(const this_type& a, const this_type& b) { return a.i_ <= b.i_; }
friend bool operator>=(const this_type& a, const this_type& b) { return a.i_ >= b.i_; }
friend bool operator>(const this_type& a, const this_type& b) { return a.i_ < b.i_; }
friend bool operator>(const this_type& a, const this_type& b) { return a.i_ > b.i_; }
this_type& operator+=(Itor::difference_type n) { i_ += n; return *this; }
this_type& operator-=(Itor::difference_type n) { i_ -= n; return *this; }