Config: fixed two cases of operator!= operating the same as operator==

This commit is contained in:
Charles Dang 2018-02-20 11:46:07 +11:00
parent ccb5d8f795
commit f45cd3eeb8

View file

@ -172,7 +172,7 @@ public:
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_; }
@ -278,7 +278,7 @@ public:
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;