From 40afd9b56620491c72ad1a04323b4144b0350a70 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 16 Apr 2004 22:04:32 +0000 Subject: Fixed const iterator svn-id: r13591 --- common/list.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common') diff --git a/common/list.h b/common/list.h index 7afc97b014..b21bc5e862 100644 --- a/common/list.h +++ b/common/list.h @@ -74,10 +74,10 @@ protected: _node = _node->_prev; return tmp; } - T& operator*() const { + T2& operator*() const { return static_cast*>(_node)->_data; } - T* operator->() const { + T2* operator->() const { return &(operator*()); } @@ -94,7 +94,7 @@ protected: public: typedef Iterator iterator; - typedef const Iterator const_iterator; + typedef Iterator const_iterator; public: List() { -- cgit v1.2.3