changeset 5:3db1a894bbdf

Fixed bug in iterator's operator!=
author Eris Caffee <discordia@eldalin.com>
date Fri, 29 May 2015 20:46:07 -0500
parents 310618f5e32a
children 438f5608900e
files algs4-c++/src/ResizingArrayStack.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/algs4-c++/src/ResizingArrayStack.cpp	Thu May 28 23:53:46 2015 -0500
     1.2 +++ b/algs4-c++/src/ResizingArrayStack.cpp	Fri May 29 20:46:07 2015 -0500
     1.3 @@ -106,8 +106,8 @@
     1.4      }
     1.5  
     1.6  template <typename T>
     1.7 -bool ResizingArrayStack<T>::iterator::operator!=( typename ResizingArrayStack<T>::iterator ) {
     1.8 -    return this->curr != this->end;
     1.9 +bool ResizingArrayStack<T>::iterator::operator!=( typename ResizingArrayStack<T>::iterator other ) {
    1.10 +    return this->curr != other.curr;
    1.11      }
    1.12  
    1.13