added sanity checks in ConditionalIterator

This commit is contained in:
Mathew Sutcliffe
2014-07-14 23:26:00 +01:00
parent 83b552faf6
commit f05c31871a
2 changed files with 13 additions and 1 deletions

View File

@@ -191,6 +191,12 @@ namespace BlackMisc
bool operator >=(const ConditionalIterator &other) const { return m_iterator >= other.m_iterator; }
//! @}
//! \private
void checkEnd(const ConditionalIterator &other) // debugging
{
Q_ASSERT(m_end == other.m_end && m_end == other.m_iterator);
}
private:
I m_iterator;
I m_end;