[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: gcc -Woverloaded-virtual
From:       André_Wöbbeking <Woebbeking () kde ! org>
Date:       2007-11-17 14:48:40
Message-ID: 200711171548.41728.Woebbeking () kde ! org
[Download RAW message or body]

On Saturday 17 November 2007, Matthias Kretz wrote:
> On Saturday 17 November 2007, André Wöbbeking wrote:
> >
> > It can be very handy but there're too many false positives, e.g. if
> > virtual void A::f(int) also exists. IMO too many to make this a
> > default option.
>
> It's not really a false positive as B::f() still gets hidden, no?

If you mean A::f(), yes.

> I agree that you sometimes don't care, e.g. if the implementation
> class is only used casted down to the interface class. 

This is the case that matters. If you try to call B::f() you get a 
compile error.

> Perhaps we 
> want to make it a configure switch then? Let's see how noisy it gets
> first I'd say...

OK

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic