S
srinivas
hi,
i am incrementing a list iterator "m_item" in my .cpp file
m_item._ptr->_next is showing the valid item.
but in the library overloaded function for ++
1 >_Myt_iter operator++(int)
2 > { // postincrement
3 > _Myt_iter _Tmp = *this;
4 > ++*this;
5 > return (_Tmp);
6 > }
(line 4)++*this is crashing...it is not showing any item in its next
pointer.
what is the problem?
thanks,
srinivas
i am incrementing a list iterator "m_item" in my .cpp file
m_item++
m_item._ptr->_next is showing the valid item.
but in the library overloaded function for ++
1 >_Myt_iter operator++(int)
2 > { // postincrement
3 > _Myt_iter _Tmp = *this;
4 > ++*this;
5 > return (_Tmp);
6 > }
(line 4)++*this is crashing...it is not showing any item in its next
pointer.
what is the problem?
thanks,
srinivas