diff src/ov.cc @ 4997:d117a9fb83be

[project @ 2004-09-15 20:49:21 by jwe]
author jwe
date Wed, 15 Sep 2004 20:49:35 +0000
parents 48d0defe9445
children 6690d8cd9bee
line wrap: on
line diff
--- a/src/ov.cc	Wed Sep 15 20:44:39 2004 +0000
+++ b/src/ov.cc	Wed Sep 15 20:49:35 2004 +0000
@@ -597,6 +597,15 @@
   maybe_mutate ();
 }
 
+octave_value::octave_value (const ArrayN<char>& chm, bool is_str)
+  : rep (is_str
+	 ? new octave_char_matrix_str (chm)
+	 : new octave_char_matrix (chm))
+{
+  rep->count = 1;
+  maybe_mutate ();
+}
+
 octave_value::octave_value (const octave_int8& i)
   : rep (new octave_int8_scalar (i))
 {