From c69c0d5cbf0588c5185c0b170747b1c9fc60c689 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 11 Dec 1996 11:43:47 +0000 Subject: [PATCH] flower-1.0.13 --- flower/plist.hh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.39.5