changeset 28641:2c15231c3154

new typedefs for octave_value matrix and scalar types * ov-base-mat.h (octave_base_matrix<T>::object_type): New typedef. * ov-base-scalar.h (octave_base_scalar<T>::object_type): Likewise.
author John W. Eaton <jwe@octave.org>
date Wed, 19 Aug 2020 23:42:05 -0400
parents 308cee7cf3ee
children 0237b10e3943
files libinterp/octave-value/ov-base-mat.h libinterp/octave-value/ov-base-scalar.h
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov-base-mat.h	Wed Aug 19 23:36:01 2020 -0400
+++ b/libinterp/octave-value/ov-base-mat.h	Wed Aug 19 23:42:05 2020 -0400
@@ -50,6 +50,8 @@
 {
 public:
 
+  typedef MT object_type;
+
   octave_base_matrix (void)
     : octave_base_value (), matrix (), typ (), idx_cache () { }
 
--- a/libinterp/octave-value/ov-base-scalar.h	Wed Aug 19 23:36:01 2020 -0400
+++ b/libinterp/octave-value/ov-base-scalar.h	Wed Aug 19 23:42:05 2020 -0400
@@ -49,6 +49,8 @@
 {
 public:
 
+  typedef ST scalar_type;
+
   octave_base_scalar (void)
     : octave_base_value (), scalar () { }