call const version of end to make cppcheck happy

This commit is contained in:
Max Lyon
2019-11-27 13:28:00 +01:00
parent 2eebdd629f
commit e36e508f0b

View File

@@ -766,7 +766,7 @@ public:
//! Complexity: O(1) //! Complexity: O(1)
inline void erase(iterator _it) inline void erase(iterator _it)
{ {
assert(_it != end() && is_in(*_it)); assert(_it != const_cast<const ExtStatusSetT*>(this)->end() && is_in(*_it));
Base::erase(*_it); Base::erase(*_it);
*_it = handles_.back(); *_it = handles_.back();
_it.pop_back(); _it.pop_back();