From d699c96e76c7ef58ad8520a092c408e57459ee7d Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 15 Nov 1996 23:29:43 +0000 Subject: [PATCH] flower-1.0.7 --- flower/cursor.hh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/flower/cursor.hh b/flower/cursor.hh index 1c61b1a76c..4babf96545 100644 --- a/flower/cursor.hh +++ b/flower/cursor.hh @@ -16,10 +16,11 @@ class Cursor tired of the warning messages. */ Cursor( const Cursor& cursor ); - + + T& thing(); /// return current T - T& operator *(); - operator T() { return *(*this); } + T& operator *() { return thing(); } + operator T() { return thing(); } Cursor operator =( const Cursor& c ); /// make cursor with #no# items back @@ -98,10 +99,6 @@ private: */ - - - - /* comparisons. */ @@ -119,4 +116,4 @@ template_instantiate_compare(Cursor, cursor_compare, template); #include "list.hh" #include "cursor.inl" -#endif // __CURSOR_HH // +#endif // CURSOR_HH -- 2.39.5