Skip to content

Commit

Permalink
config: Fix child/const_child_iterator implementations of operator>
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
irydacea committed Aug 19, 2015
1 parent c3c0c9c commit 44312ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.hpp
Expand Up @@ -143,7 +143,7 @@ class config
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; }
Expand Down Expand Up @@ -184,7 +184,7 @@ class config
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; }
Expand Down

0 comments on commit 44312ad

Please sign in to comment.