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