If you see the signatures of foo in the base class and the derived class, you can see that the derived class version is missing the "const" keyword.<br><br><div class="gmail_quote">On Fri, Oct 7, 2011 at 5:12 PM, Don Quixote de la Mancha <span dir="ltr"><<a href="mailto:quixote@dulcineatech.com">quixote@dulcineatech.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Fri, Oct 7, 2011 at 7:33 AM, Nico Weber <<a href="mailto:thakis@chromium.org">thakis@chromium.org</a>> wrote:<br>
>> The attached patch adds a C++ Checker to clang, it checks whether<br>
>> there are mistakes in override.<br>
<br>
</div>My understanding is that it is not actually necessary to declare<br>
member functions in subclasses as being virtual if the base class<br>
declares them virtual. The compiler just assumes they are.<br>
<br>
That's my understanding anyway. I do not own a copy of the C++ Spec<br>
so I can't Quote Scripture.<br>
<br>
I always declare them virtual anyway because it's confusing otherwise.<br>
Is that what you're trying to catch?<br>
<font color="#888888"><br>
<br>
<br>
<br>
--<br>
Don Quixote de la Mancha<br>
Dulcinea Technologies Corporation<br>
Software of Elegance and Beauty<br>
<a href="http://www.dulcineatech.com" target="_blank">http://www.dulcineatech.com</a><br>
<a href="mailto:quixote@dulcineatech.com">quixote@dulcineatech.com</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br>