69 points · by adamnemecek · 12y ago · 17 comments
Seems like you should need to traverse the list to dequeue.
Where did I go wrong?
if ( !m_pHead )
m_pHead = p ;
else
m_pTail->next = p;
m_pTail = p;
For some reason, the author is inserting the node in front of the tail leading to the error.http://webcache.googleusercontent.com/search?q=cache:kgO8-Tc...