]> git.donarmstrong.com Git - lilypond.git/commitdiff
flower-1.0.15
authorfred <fred>
Thu, 19 Dec 1996 10:33:32 +0000 (10:33 +0000)
committerfred <fred>
Thu, 19 Dec 1996 10:33:32 +0000 (10:33 +0000)
flower/cursor.hh

index 6d40bb270d635d876bdb6fcc37fd3b0c23c49406..428a52748fb0b7ff196238adc2685ed59cc03fe4 100644 (file)
@@ -84,7 +84,7 @@ class Cursor
     /// access the list this came from
     List<T>& list() const ;
     Link<T>* pointer();
-
+    static   int compare(Cursor<T> a,Cursor<T>b) { return a-b; }
 private:
     List<T>& list_;
     Link<T>* pointer_;
@@ -104,13 +104,8 @@ private:
   */
 #include "compare.hh"
 
-template<class T>
-inline  int cursor_compare(Cursor<T> a,Cursor<T>b)
-{
-    return a-b;
-}
 
-template_instantiate_compare(Cursor<T>, cursor_compare, template<class T>);
+template_instantiate_compare(Cursor<T>, Cursor<T>::compare, template<class T>);
 
 #include "pcursor.hh"
 #include "list.hh"