To add to Lasconic's comment, an overriden virtual function in a subclass
gets called regardless of whether the class is referenced by its base class
or derived class. But an overloaded function of the same name only gets
called if you reference the subclass. Thus, there is a potential for
unexpected results if you reference the instance by its base class.

On Wed, May 6, 2015 at 12:39 PM, Lasconic <[email protected]> wrote:

> The purpose of a virtual function is to be *overriden*, not overloaded.
>
> The warning here was telling that the "overloading" function was hiding
> the "overloaded" method and this last one was virtual, so potentially it
> could be overriden. I guess the compiler warns us in order to make sure we
> are really calling the method we want in the end.
>
> lasconic
>
> 2015-05-06 19:32 GMT+02:00 Jim Newton <[email protected]>:
>
>> Why should overloading a function trigger an error? Isn't that the
>> purpose of virtual methods?
>> I have indeed seen this message before.
>> On Apr 29, 2015 5:06 PM, &quot;Robert Patterson [via MuseScore
>> Developer]&quot; &lt;[email protected]&gt; wrote:
>>
>>         &#34;...hides overloaded virtual function&#34; Usually means
>> there is s function of the same name defined in a subclass with a different
>> call signature than that of the base class where the virtual function is
>> defined. On Wed, Apr 29, 2015 at 9:45 AM, Jojo-Schmitz &lt; [hidden email]
>> &gt; wrote: &lt;blockquote style=&quot;border-left:2px solid
>> #cccccc;padding:0 1em&quot; style=&quot;margin:0 0 0 0.8ex;border-left:1px
>> #ccc solid;padding-left:1ex&quot;&gt;I was thinking of warnings like
>> &#34;...hides overloaded virtual function
>> [-Woverloaded-virtual]&#34;
>>
>>
>>
>> --
>> View this message in context:
>> http://dev-list.musescore.org/running-tests-on-mac-via-xcode-tp7579199p7579266.html
>> Sent from the MuseScore Developer mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50&#43; applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Mscore-developer mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>>
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50&#43; applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Mscore-developer mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>>
>>
>>
>>
>>
>>
>>
>>
>>                 If you reply to this email, your message will be added to
>> the discussion below:
>>
>> http://dev-list.musescore.org/running-tests-on-mac-via-xcode-tp7579199p7579267.html
>>
>>
>>
>>                 To unsubscribe from running tests on mac via xcode, click
>> here .
>>                 NAML
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://dev-list.musescore.org/running-tests-on-mac-via-xcode-tp7579199p7579306.html
>> Sent from the MuseScore Developer mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Mscore-developer mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>>
>
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Mscore-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>
>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Mscore-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer

Reply via email to