gcc -Woverloaded-virtual

Aurélien Gâteau aurelien.gateau at free.fr
Mon Nov 26 13:58:57 GMT 2007


David Faure wrote:
>> I am afraid this will lead to problems if one is overloaded and not the
>> other.
> 
> ... which is exactly what the -Woverloaded-virtual warning will detect :-)

I mean, what happens if addSubjob(KJob*) is overloaded, but not
addSubjob(KJob*, bool)? I don't think -Woverloaded-virtual will notice any
problem.

Aurélien





More information about the kde-core-devel mailing list