From 17c9aa4a39c5a5f87645efbc72207b9819e97937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Mon, 9 Feb 2015 12:50:44 +0800 Subject: [PATCH] bug fix --- TinySTL/List.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);