diff liboctave/Array.h @ 3928:e8627dc4bdf2

[project @ 2002-05-03 19:56:01 by jwe]
author jwe
date Fri, 03 May 2002 19:56:02 +0000
parents b8c1cb5b9fd9
children f9ea3dcf58ee
line wrap: on
line diff
--- a/liboctave/Array.h	Fri May 03 02:13:42 2002 +0000
+++ b/liboctave/Array.h	Fri May 03 19:56:02 2002 +0000
@@ -248,6 +248,8 @@
 
   Array<T> index (idx_vector& i) const;
 #endif
+
+  static T resize_fill_value (void) { return static_cast<T> (0); }
 };
 
 template <class LT, class RT>
@@ -258,7 +260,7 @@
 int
 assign (Array<LT>& lhs, const Array<RT>& rhs)
 {
-  return assign (lhs, rhs, static_cast<LT> (0));
+  return assign (lhs, rhs, Array<LT>::resize_fill_value ());
 }
 
 #endif