changeset 31106:d98abdd15d40

* ov-base.h (__get_type_info__): Provide backward compatibility function.
author John W. Eaton <jwe@octave.org>
date Thu, 23 Jun 2022 15:23:57 -0400
parents 670a0d878af1
children 6ee5bd9ad7cc
files libinterp/octave-value/ov-base.h
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov-base.h	Wed Jun 22 12:48:59 2022 -0400
+++ b/libinterp/octave-value/ov-base.h	Thu Jun 23 15:23:57 2022 -0400
@@ -56,6 +56,11 @@
   // maybe this function should be declared in a public header file?
 
   extern OCTINTERP_API type_info& __get_type_info__ (void);
+
+  // For now just preserve the old interface and don't mark it as deprecated.  This function
+  // is currently an internal, private function.  Additional changes may be made before
+  // version 8 is finally released.
+  inline type_info& __get_type_info__ (const std::string&) { return __get_type_info__ (); }
 }
 
 class Cell;