gcc -Woverloaded-virtual

Olivier Goffart ogoffart at kde.org
Wed Nov 21 15:34:53 GMT 2007


Le mercredi 21 novembre 2007, David Faure a écrit :
> On Wednesday 21 November 2007, Matthias Kretz wrote:
> > What about "using" statements to silence some warnings where applicable?
> > They don't change anything wrt the resulting code, right?
>
> Well, they do. The warning says a virtual method is hidden, while adding a
> "using" statement makes it visible again. What we're missing is a way to
> say "yes I wanted to hide this method from the base class"...

Place the "using" declaration in the private section.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071121/c6f95fcb/attachment.sig>


More information about the kde-core-devel mailing list