diff src/base-list.h @ 11515:6dbf9bcce90e

more data member initialization fixes
author John W. Eaton <jwe@octave.org>
date Thu, 13 Jan 2011 10:00:13 -0500
parents f3b65e1ae355
children fd0a3ac60b0e
line wrap: on
line diff
--- a/src/base-list.h
+++ b/src/base-list.h
@@ -86,6 +86,23 @@
   // For backward compatibility.
   void append (const elt_type& s) { lst.push_back (s); }
 
+protected:
+
+  octave_base_list (void) : lst () { }
+
+  octave_base_list (const octave_base_list& bl) : lst (bl.lst) { }
+
+  octave_base_list& operator = (const octave_base_list& bl)
+    {
+      if (this != &bl)
+        {
+          lst = bl.lst;
+        }
+      return *this;
+    }
+
+  ~octave_base_list (void) { }
+
 private:
 
   std::list<elt_type> lst;