Should the attached be applied?

David Bateman dbateman at dbateman.org
Thu Nov 13 16:09:37 CST 2008


I think we need the patch

diff --git a/liboctave/Array2.h b/liboctave/Array2.h
--- a/liboctave/Array2.h
+++ b/liboctave/Array2.h
@@ -117,14 +117,14 @@
     }
 
   Array2<T> index (idx_vector& i, int resize_ok = 0,
-           const T& rfv = resize_fill_value (T ())) const
+           const T& rfv = Array<T>::resize_fill_value ()) const
     {
       Array<T> tmp = Array<T>::index (i, resize_ok, rfv);
       return Array2<T> (tmp, tmp.rows (), tmp.columns ());
     }
 
   Array2<T> index (idx_vector& i, idx_vector& j, int resize_ok = 0,
-           const T& rfv = resize_fill_value (T ())) const
+           const T& rfv = Array<T>::resize_fill_value ()) const
     {
       Array<T> tmp = Array<T>::index (i, j, resize_ok, rfv);
       return Array2<T> (tmp, tmp.rows (), tmp.columns ());

But perhaps Jaroslav should comment as this touches on his recent 
indexing changes..

D.

-- 
David Bateman                                dbateman at dbateman.org
35 rue Gambetta                              +33 1 46 04 02 18 (Home)
92100 Boulogne-Billancourt FRANCE            +33 6 72 01 06 33 (Mob)



More information about the Octave-maintainers mailing list