• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: virtual method hidden
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: virtual method hidden (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: virtual method hidden
  • Next by Date: Modify element hierarchy in a window with Interface Builder
  • Previous by thread: Re: virtual method hidden
  • Next by thread: RE: virtual method hidden
  • Index(es):
    • Date
    • Thread