added assert to verify that operands are initialized in compatibility_iterator::operator==()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-03-21 13:14:19 +00:00
parent e547f7a7b8
commit b4affacc10

View File

@ -166,7 +166,11 @@ private:
const compatibility_iterator* operator->() const { return this; } \
\
bool operator==(const compatibility_iterator& i) const \
{ return (m_list == i.m_list) && (m_iter == i.m_iter); } \
{ \
wxASSERT_MSG( m_list && i.m_list, \
_T("comparing invalid iterators is illegal") ); \
return (m_list == i.m_list) && (m_iter == i.m_iter); \
} \
bool operator!=(const compatibility_iterator& i) const \
{ return !( operator==( i ) ); } \
operator bool() const \