diff liboctave/boolMatrix.h @ 11570:57632dea2446

attempt better backward compatibility for Array constructors
author John W. Eaton <jwe@octave.org>
date Wed, 19 Jan 2011 17:55:56 -0500
parents fd0a3ac60b0e
children a83bad07f7e3
line wrap: on
line diff
--- a/liboctave/boolMatrix.h
+++ b/liboctave/boolMatrix.h
@@ -36,11 +36,19 @@
 public:
 
   boolMatrix (void) : Array<bool> () { }
-  boolMatrix (octave_idx_type r, octave_idx_type c) : Array<bool> (r, c) { }
-  boolMatrix (octave_idx_type r, octave_idx_type c, bool val) : Array<bool> (r, c, val) { }
+
+  boolMatrix (octave_idx_type r, octave_idx_type c)
+    : Array<bool> (dim_vector (r, c)) { }
+
+  boolMatrix (octave_idx_type r, octave_idx_type c, bool val)
+    : Array<bool> (dim_vector (r, c), val) { }
+
   boolMatrix (const dim_vector& dv) : Array<bool> (dv) { }
+
   boolMatrix (const dim_vector& dv, bool val) : Array<bool> (dv, val) { }
+
   boolMatrix (const Array<bool>& a) : Array<bool> (a.as_matrix ()) { }
+
   boolMatrix (const boolMatrix& a) : Array<bool> (a) { }
 
   boolMatrix& operator = (const boolMatrix& a)