Mercurial > hg > octave-lyh
diff liboctave/dColVector.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/dColVector.h +++ b/liboctave/dColVector.h @@ -99,8 +99,11 @@ friend OCTAVE_API std::ostream& operator << (std::ostream& os, const ColumnVector& a); friend OCTAVE_API std::istream& operator >> (std::istream& is, ColumnVector& a); - void resize (octave_idx_type n, const double& rfv = Array<double>::resize_fill_value ()) - { Array<double>::resize (n, 1, rfv); } + void resize (octave_idx_type n, + const double& rfv = Array<double>::resize_fill_value ()) + { + Array<double>::resize (dim_vector (n, 1), rfv); + } void clear (octave_idx_type n) { Array<double>::clear (n, 1); }