diff options
-rw-r--r-- | chilbert/SmallBitVec.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chilbert/SmallBitVec.hpp b/chilbert/SmallBitVec.hpp index 478cbc9..599f789 100644 --- a/chilbert/SmallBitVec.hpp +++ b/chilbert/SmallBitVec.hpp @@ -276,15 +276,14 @@ public: return *this; } - bool operator==(const iterator_base& iterator_base) const + bool operator==(const iterator_base& rhs) const { - return m_vec == iterator_base.m_vec && - Mask::operator==(iterator_base); + return m_vec == rhs.m_vec && Mask::operator==(rhs); } - bool operator!=(const iterator_base& iterator_base) const + bool operator!=(const iterator_base& rhs) const { - return !operator==(iterator_base); + return !operator==(rhs); } bool operator*() const { return m_vec->test(*this); } |