summaryrefslogtreecommitdiff
path: root/flower/cursor.hh
diff options
context:
space:
mode:
Diffstat (limited to 'flower/cursor.hh')
-rw-r--r--flower/cursor.hh13
1 files 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<T>& cursor );
-
+
+ T& thing();
/// return current T
- T& operator *();
- operator T() { return *(*this); }
+ T& operator *() { return thing(); }
+ operator T() { return thing(); }
Cursor<T> operator =( const Cursor<T>& c );
/// make cursor with #no# items back
@@ -98,10 +99,6 @@ private:
*/
-
-
-
-
/*
comparisons.
*/
@@ -119,4 +116,4 @@ template_instantiate_compare(Cursor<T>, cursor_compare, template<class T>);
#include "list.hh"
#include "cursor.inl"
-#endif // __CURSOR_HH //
+#endif // CURSOR_HH