]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.65
authorfred <fred>
Sun, 24 Mar 2002 19:43:55 +0000 (19:43 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:43:55 +0000 (19:43 +0000)
flower/include/plist.hh
flower/include/plist.tcc

index 469a8d444a4d1b3e45a29dec429b8fea49390758..4c9d71dba539ad389db65475fdfc968fec46bb56 100644 (file)
@@ -33,23 +33,30 @@ class Link_list : public List<void *>
     Link_list() {}
 };
 
-/**   Link_list which deletes pointers given to it. 
+/**   
+  
+  Link_list which deletes pointers given to it. 
+
   NOTE:
   
   The copy constructor doesn't do what you'd want:
   Since T might have a virtual ctor, we don't try to do a
 
-    new T(*cursor)
+    new T(**cursor)
 
   You have to copy this yourself, or use the macro Link_list__copy
   
+  TODO
+  operator =()
   */
 template<class T>
 class Pointer_list : public Link_list<T> {
+    
 public:
+    void junk();
     Pointer_list(Pointer_list const &) { set_empty(); }
     Pointer_list() { }
-    ~Pointer_list();
+    ~Pointer_list() { junk(); }
 };
 
 #define Pointer_list__copy(T, to, from, op)   \
index 2f75d08adfc3a2be8e63e27b645ad9eb722983a6..ba4a0f20b037af367921882b11bb42b784f28fc3 100644 (file)
@@ -6,7 +6,8 @@
        template class Pointer_list<a*>
        
 template<class T>
-Pointer_list<T>::~Pointer_list()
+void
+Pointer_list<T>::junk()
 {
     PCursor<T> c( *this );
     while (c.ok()) {