changeset 227 | 482a61824ef4 |
parent 225 | dad23ccd9e6c |
child 286 | 57e6a2006962 |
--- a/src/core/ptr.h Fri Dec 22 09:03:09 2006 +0100 +++ b/src/core/ptr.h Wed Jan 31 20:14:23 2007 +0100 @@ -75,6 +75,7 @@ Ptr (Ptr<U> const &o); ~Ptr () ; Ptr<T> &operator = (Ptr const& o); + T const& operator * () const; T *operator -> () const; T *operator -> (); // allow if (!sp) @@ -203,6 +204,13 @@ } template <typename T> +T const& +Ptr<T>::operator * () const +{ + return *m_ptr; +} + +template <typename T> T * Ptr<T>::operator -> () {