diff libinterp/octave-value/ov.h @ 26922:072d0610cc56

avoid some overloaded virtual warnings (bug #55741) * ov.h (octave_value::xnumel (const octave_value_list&)): Rename from numel. Change all uses. * ov-base.h, ov-base.cc, ov-class.h, ov-class.cc, ov-classdef.h, ov-classdef.cc: Rename "numel (const octave_value_list&) method to xnumel. Change all uses.
author John W. Eaton <jwe@octave.org>
date Fri, 15 Mar 2019 07:16:27 +0000
parents 9cd4b045fe3d
children 823b4bcf79fc
line wrap: on
line diff
--- a/libinterp/octave-value/ov.h	Fri Mar 15 06:56:26 2019 +0000
+++ b/libinterp/octave-value/ov.h	Fri Mar 15 07:16:27 2019 +0000
@@ -406,8 +406,10 @@
   Matrix size (void)
   { return rep->size (); }
 
-  octave_idx_type numel (const octave_value_list& idx)
-  { return rep->numel (idx); }
+  // FIXME: should this function be deprecated and removed?  It supports
+  // an undocumented feature of Matlab.
+  octave_idx_type xnumel (const octave_value_list& idx)
+  { return rep->xnumel (idx); }
 
   // FIXME: Do we really need all these different versions of subsref
   // and related functions?