Skip to content

Commit

Permalink
Config: fixed two cases of operator!= operating the same as operator==
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Feb 20, 2018
1 parent ea4b674 commit b14fdc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.hpp
Expand Up @@ -172,7 +172,7 @@ class config
bool operator==(const child_iterator &i) const { return i_ == i.i_; }
bool operator!=(const child_iterator &i) const { return i_ != i.i_; }
bool operator==(const const_child_iterator &i) const { return i == *this; }
bool operator!=(const const_child_iterator &i) const { return i == *this; }
bool operator!=(const const_child_iterator &i) const { return i != *this; }

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_; }
Expand Down Expand Up @@ -278,7 +278,7 @@ class config
bool operator==(const attribute_iterator &i) const { return i_ == i.i_; }
bool operator!=(const attribute_iterator &i) const { return i_ != i.i_; }
bool operator==(const const_attribute_iterator &i) const { return i == *this; }
bool operator!=(const const_attribute_iterator &i) const { return i == *this; }
bool operator!=(const const_attribute_iterator &i) const { return i != *this; }

private:
friend struct config::const_attribute_iterator;
Expand Down

0 comments on commit b14fdc8

Please sign in to comment.