Mercurial > jwe > octave
diff libinterp/octave-value/ov-base.h @ 15501:814c4b0d5c49
make numeric mapper functions throw error for char args (bug #37535)
* ov-base.h (octave_base_value::get_umap_name): Now protected instead
of private.
* ov-ch-mat.cc (octave_char_matrix::map): Special cases for umap_abs,
umap_ceil, umap_fix, umap_floor, umap_imag, umap_isinf, umap_isnan,
umap_real, and umap_round. Error for all other mappers that expect
numeric arguments.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 11 Oct 2012 12:56:56 -0400 |
parents | ecf5be238b4a |
children | 2fac72a256ce |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-base.h Thu Oct 11 08:54:08 2012 +0200 +++ b/libinterp/octave-value/ov-base.h Thu Oct 11 12:56:56 2012 -0400 @@ -802,9 +802,9 @@ // (think of an empty cell array with >2G elements). octave_refcount<octave_idx_type> count; -private: + static const char *get_umap_name (unary_mapper_t); - static const char *get_umap_name (unary_mapper_t); +private: static int curr_print_indent_level; static bool beginning_of_line;