From: fred Date: Wed, 11 Dec 1996 11:43:47 +0000 (+0000) Subject: flower-1.0.13 X-Git-Tag: release/1.5.59~6622 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c69c0d5cbf0588c5185c0b170747b1c9fc60c689;p=lilypond.git flower-1.0.13 --- diff --git a/flower/plist.hh b/flower/plist.hh index 704a883f83..19db901f8a 100644 --- a/flower/plist.hh +++ b/flower/plist.hh @@ -20,9 +20,12 @@ class PointerList : public List void concatenate(PointerList const &s) { List::concatenate(s); } PointerList() {} }; +/** This class does no deletion of the pointers, but it knows how to + copy itself (shallow copy). We could have derived it from List, + but this design saves a lot of code dup; for all PointerLists in the + program only one parent List is instantiated. */ - -/// intrusive pl. deletes pointers given to it. +/// pl. which deletes pointers given to it. template struct IPointerList : public PointerList { IPointerList(IPointerList&) { set_empty(); } @@ -33,6 +36,7 @@ protected: }; /** 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