[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55741] build with '-Woverloaded-virtual' emit

From: Mike Miller
Subject: [Octave-bug-tracker] [bug #55741] build with '-Woverloaded-virtual' emits many warnings indicating problems
Date: Wed, 20 Feb 2019 02:03:49 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36

Follow-up Comment #1, bug #55741 (project octave):

Here is a list of virtual class member functions that are hidden by
non-virtual overload functions of the same name in a derived class.

* base_graphics_object::get(bool) const
* octave::base_value_stack_frame::varref(size_t)
* octave::base_value_stack_frame::varval(size_t) const
* octave::opengl_renderer::draw(const Matrix&, bool)
* octave::stack_frame::varref(const octave::symbol_record&)
* octave::stack_frame::varref(size_t)
* octave::stack_frame::varval(const octave::symbol_record&) const
* octave::stack_frame::varval(size_t) const
* octave_base_matrix<MT>::diag(octave_idx_type, octave_idx_type) const
* octave_base_scalar<ST>::diag(octave_idx_type) const
* octave_base_value::assign(const string&, const octave_value&)
* octave_base_value::diag(octave_idx_type, octave_idx_type) const
* octave_base_value::numel() const
* octave_base_value::numel(const octave_value_list&)
* octave_base_value::subsref(const string&, const
* octave_base_value::subsref(const string&, const
std::list<octave_value_list>&, bool)

The list of member functions that are overloading these virtual functions is a
bit longer, will take some more time to go through and make this useful. But
as one simple example, octave::opengl_selector is a derived class of
octave::opengl_renderer, and it defines 'virtual void draw (const
graphics_object&, bool)' only.


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]