core/com.nokia.carbide.cpp.compiler.doc.user/html/errors/err_hidden_virtual_fn.htm
Add S60 5.2 support.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="LASTUPDATED" content="06/17/05 11:09:43" />
<title>Hidden Virtual Functions</title>
<link rel="StyleSheet" href="../../book.css" type="text/css"/>
</head>
<body bgcolor="#FFFFFF">
<h3>Hidden Virtual Functions</h3>
<p> If you enable the Hidden virtual functions setting, the compiler generates a warning if you declare a non-virtual member function in a subclass that hides an inherited virtual function in a superclass. One function hides another if it has the same name but a different argument type. An example of hidden virtual functions:</p>
<div class="listing">
<p>class A {<br />
public:<br />
virtual void f(int);<br />
virtual void g(int);<br />
};</p>
<p>class B: public A {<br />
public:<br />
void f(char); // WARNING: Hides A::f(int)<br />
virtual void g(int); // OK: Overrides A::g(int)<br />
}; </p>
</div>
<p>The Hidden virtual functions setting corresponds to the pragma <a href="../pragmas/p_warn_hidevirtual.htm">warn_hidevirtual</a>. To check this setting, use <span class="code">__option (warn_hidevirtual)</span>.</p>
<p>See <a href="../symbols/sym_settings.htm">Checking Option Settings</a> for information on how to use this directive.<br />
</p>
<div id="footer">Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>
</body>
</html>