diff liboctave/boolMatrix.h @ 11574:a83bad07f7e3

attempt better backward compatibility for Array resize functions
author John W. Eaton <jwe@octave.org>
date Thu, 20 Jan 2011 00:12:05 -0500
parents 57632dea2446
children 72c96de7a403
line wrap: on
line diff
--- a/liboctave/boolMatrix.h	Wed Jan 19 20:29:11 2011 -0800
+++ b/liboctave/boolMatrix.h	Thu Jan 20 00:12:05 2011 -0500
@@ -84,6 +84,12 @@
   friend std::istream& operator >> (std::istream& is, Matrix& a);
 #endif
 
+  void resize (octave_idx_type nr, octave_idx_type nc,
+               bool rfv = resize_fill_value ())
+  {
+    Array<bool>::resize (dim_vector (nr, nc), rfv);
+  }
+
   static bool resize_fill_value (void) { return false; }
 
 };