From 32adc97dd5c130790eb0512da47d5ecd8b062d01 Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 1 Nov 1996 16:38:54 +0000 Subject: [PATCH] flower-1.0.4 --- flower/pcursor.hh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/flower/pcursor.hh b/flower/pcursor.hh index 8b0b179b4f..eb0e8f15f9 100644 --- a/flower/pcursor.hh +++ b/flower/pcursor.hh @@ -1,4 +1,13 @@ +/* + pcursor.hh -- part of flowerlib + + (c) 1996 Han-Wen Nienhuys&Jan Nieuwenhuizen +*/ + +#ifndef PCURSOR_HH +#define PCURSOR_HH + /// cursor which feels like a pointer template @@ -13,14 +22,15 @@ struct PCursor : public Cursor { PCursor operator +( int no) const { return PCursor (Cursor::operator+(no)); } - PCursor(List & l) : Cursor (l) {} + PCursor(const List & l) : Cursor (l) {} PCursor( const Cursor& cursor ) : Cursor(cursor) { } T operator ->() { return *(*this); } }; /** - HWN: I'd like an operator->(), so here it is. + I like operator->(), so here it is. Cursor to go with pointer list. */ +#endif -- 2.39.5