From 38ae101bdecd04501ec6b7e3dea8b8a388d09c5a Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sun, 29 Jan 2006 03:44:13 +0000 Subject: cyx's gcc 2.95 fix makes things compile with gcc 2.95 again. svn-id: r20288 --- common/list.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common') diff --git a/common/list.h b/common/list.h index 82e5f013a2..11a4967633 100644 --- a/common/list.h +++ b/common/list.h @@ -91,7 +91,11 @@ public: } T2& operator*() const { assert(_node); +#if (__GNUC__ == 2) && (__GNUC_MINOR__ >= 95) + return static_cast::Node *>(_node)->_data; +#else return static_cast*>(_node)->_data; +#endif } T2* operator->() const { return &(operator*()); -- cgit v1.2.3