diff --git a/TinySTL/List.h b/TinySTL/List.h index 065e064..febb068 100644 --- a/TinySTL/List.h +++ b/TinySTL/List.h @@ -41,7 +41,7 @@ namespace TinySTL{ listIterator& operator --(); listIterator operator --(int); T& operator *(){ return p->data; } - T* operator &(){ return &(operator*()); } + T* operator ->(){ return &(operator*()); } template friend bool operator ==(const listIterator& lhs, const listIterator& rhs);