diff options
-rw-r--r-- | common/list.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<List<T>::Node<T2> *>(_node)->_data; +#else return static_cast<Node<T2>*>(_node)->_data; +#endif } T2* operator->() const { return &(operator*()); |