diff liboctave/Array.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 12df7854fa7c
line wrap: on
line diff
--- a/liboctave/Array.h	Wed Jan 19 20:29:11 2011 -0800
+++ b/liboctave/Array.h	Thu Jan 20 00:12:05 2011 -0500
@@ -452,8 +452,11 @@
   void resize (octave_idx_type n) GCC_ATTR_DEPRECATED
     { resize1 (n); }
 
-  void resize (octave_idx_type nr, octave_idx_type nc, 
-               const T& rfv = resize_fill_value ());
+  void resize (octave_idx_type nr, octave_idx_type nc,
+               const T& rfv = resize_fill_value ()) GCC_ATTR_DEPRECATED
+  {
+    resize2 (nr, nc, rfv);
+  }
 
   void resize (const dim_vector& dv, const T& rfv = resize_fill_value ());
 
@@ -659,6 +662,10 @@
   bool optimize_dimensions (const dim_vector& dv);
 
 private:
+
+  void resize2 (octave_idx_type nr, octave_idx_type nc, 
+                const T& rfv = resize_fill_value ());
+
   static void instantiation_guard ();
 };