Re: virtual method hidden
Re: virtual method hidden
- Subject: Re: virtual method hidden
- From: "Andy O'Meara" <email@hidden>
- Date: Fri, 09 Dec 2005 17:31:23 -0500
- Thread-topic: virtual method hidden
> Fix that little typo to param1, param2... (off to radar for that....)
> then it compiles but with no warnings. I have every warning enabled in
> the C/C++ Warnings panel. How did you get the warning in CW?
>
>
You picked a bad example by using 0/NULL--if you changed you code to:
int main (int argc, char * const argv[])
{
Derived obj;
obj.Method(2,2); // Error: does not match Method( void* )
return 0;
}
You'd get an error in CW--I'm not sure what happens in xcode though.
CW only emits a warning when the derived class declares a fcn w/ the same
name but a prototype that doesn't match any of the existing base functions
(which typically happens when you make some method prototype change and
forget to propagate it to derived classes or vice versa).
Andy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden