Commit a2b8f499 authored by hyperrealm's avatar hyperrealm

Fixed implementations of iterator operator== and operator!=

(which were infinitely recursive).
parent cea2aee8
......@@ -335,10 +335,10 @@ class LIBCONFIGXX_API SettingIterator
// Equality comparison.
inline bool operator==(SettingIterator const &other) const
{ return(_idx == other._idx); }
{ return((_setting == other._setting) && (_idx == other._idx)); }
inline bool operator!=(SettingIterator const &other) const
{ return(*this != other); }
{ return(!operator==(other)); }
bool operator<(SettingIterator const &other) const;
......@@ -390,10 +390,10 @@ class LIBCONFIGXX_API SettingConstIterator
// Equality comparison.
bool operator==(SettingConstIterator const &other) const
{ return(_idx == other._idx); }
{ return((_setting == other._setting) && (_idx == other._idx)); }
inline bool operator!=(SettingConstIterator const &other) const
{ return(*this != other); }
{ return(!operator==(other)); }
// Dereference operators.
inline Setting const & operator*()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment