Mercurial > octave
changeset 26920:e0111653adcf
avoid an overloaded virtual warnings (bug #55741)
* ov-cell.h: Avoid overloaded virtual method warning for octave_cell
class that is derived from octave_base_value and that introduces two
additional assign methods.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 15 Mar 2019 06:49:01 +0000 |
parents | c33ac5ca0a7a |
children | 9c8ebafba517 |
files | libinterp/octave-value/ov-cell.h |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-cell.h Fri Mar 15 06:38:07 2019 +0000 +++ b/libinterp/octave-value/ov-cell.h Fri Mar 15 06:49:01 2019 +0000 @@ -90,6 +90,13 @@ const std::list<octave_value_list>& idx, const octave_value& rhs); + // FIXME: should we import the functions from the base class and + // overload them here, or should we use a different name so we don't + // have to do this? Without the using declaration or a name change, + // the base class functions will be hidden. That may be OK, but it + // can also cause some confusion. + using octave_base_value::assign; + void assign (const octave_value_list& idx, const Cell& rhs); void assign (const octave_value_list& idx, const octave_value& rhs);