Mercurial > octave
changeset 33370:463c1f9bfadc bytecode-interpreter
Add visibility attributes to overridable member functions of template class (bug #65573).
* ov-base-mat.h (octave_base_matrix), ov-base-scalar (octave_base_scalar): Add
visibility attributes to overridable member functions of template classes.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 09 Apr 2024 19:49:51 +0200 |
parents | 2717d1cceee2 |
children | 675d794e23b9 |
files | libinterp/octave-value/ov-base-mat.h libinterp/octave-value/ov-base-scalar.h |
diffstat | 2 files changed, 16 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-base-mat.h Tue Apr 09 19:47:35 2024 +0200 +++ b/libinterp/octave-value/ov-base-mat.h Tue Apr 09 19:49:51 2024 +0200 @@ -89,9 +89,11 @@ #if defined (OCTAVE_ENABLE_BYTECODE_EVALUATOR) - bool vm_need_storable_call () const { return true; } + OCTINTERP_OVERRIDABLE_FUNC_API bool + vm_need_storable_call () const { return true; } - bool is_maybe_function () const { return false; } + OCTINTERP_OVERRIDABLE_FUNC_API bool + is_maybe_function () const { return false; } #endif @@ -246,13 +248,14 @@ OCTINTERP_API octave_value vm_extract_forloop_value (octave_idx_type idx); - octave_value + OCTINTERP_API octave_value checked_full_matrix_elem (octave_idx_type i) const; - octave_value + OCTINTERP_API octave_value checked_full_matrix_elem (octave_idx_type i, octave_idx_type j) const; - octave_base_value::vm_call_dispatch_type vm_dispatch_call () + OCTINTERP_OVERRIDABLE_FUNC_API octave_base_value::vm_call_dispatch_type + vm_dispatch_call () { return vm_call_dispatch_type::OCT_SUBSREF; }
--- a/libinterp/octave-value/ov-base-scalar.h Tue Apr 09 19:47:35 2024 +0200 +++ b/libinterp/octave-value/ov-base-scalar.h Tue Apr 09 19:49:51 2024 +0200 @@ -196,13 +196,17 @@ OCTINTERP_API octave_value vm_extract_forloop_value (octave_idx_type idx); - bool vm_need_dispatch_assign_rhs () { return false; } + OCTINTERP_OVERRIDABLE_FUNC_API bool vm_need_dispatch_assign_rhs () + { return false; } - bool vm_need_dispatch_assign_lhs () { return false; } + OCTINTERP_OVERRIDABLE_FUNC_API bool vm_need_dispatch_assign_lhs () + { return false; } - bool vm_need_dispatch_push () { return false; } + OCTINTERP_OVERRIDABLE_FUNC_API bool vm_need_dispatch_push () + { return false; } - octave_base_value::vm_call_dispatch_type vm_dispatch_call () + OCTINTERP_OVERRIDABLE_FUNC_API octave_base_value::vm_call_dispatch_type + vm_dispatch_call () { return vm_call_dispatch_type::OCT_SUBSREF; }