Remove unnecessary explicit definition of enumerated_iterator::operator!=
This commit is contained in:
parent
1a42696a2b
commit
5d412f3c19
|
@ -98,10 +98,9 @@ public:
|
|||
++ m_idx;
|
||||
return *this;
|
||||
}
|
||||
bool operator!=(const enumerated_iterator &i) const
|
||||
{
|
||||
return m_iter != i.m_iter;
|
||||
}
|
||||
/* Define operator== to compare only the iterator, but not the index. This
|
||||
* is sufficient for proper operation, and generates smaller code.
|
||||
*/
|
||||
bool operator==(const enumerated_iterator &i) const
|
||||
{
|
||||
return m_iter == i.m_iter;
|
||||
|
|
Loading…
Reference in a new issue