]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/pcursor.hh
release: 0.0.4
[lilypond.git] / flower / pcursor.hh
index 8b0b179b4fc8035a642e101356c00e195be553f1..eb0e8f15f951339c26555cb0467c77dd6e607814 100644 (file)
@@ -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<class T>
@@ -13,14 +22,15 @@ struct PCursor : public Cursor<T> {
     PCursor<T> operator +( int no) const {
        return PCursor<T> (Cursor<T>::operator+(no));
     }
-    PCursor(List<T> & l) : Cursor<T> (l) {}
+    PCursor(const List<T> & l) : Cursor<T> (l) {}
 
     PCursor( const Cursor<T>& cursor ) : Cursor<T>(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