Re: Hidden Overloaded C++ Virtual Function
Re: Hidden Overloaded C++ Virtual Function
- Subject: Re: Hidden Overloaded C++ Virtual Function
- From: Scott Ribe <email@hidden>
- Date: Wed, 04 Jan 2006 10:23:52 -0700
- Thread-topic: Hidden Overloaded C++ Virtual Function
> Plus, I may want the compiler to stop me from using B::foo(int),
> which it will do if I don't declare foo(int) in B.
I'm too new to XCode to promise that this won't give you some other warning,
but the "standard" (iow perfectly legal C++) way of preventing B::foo(int)
from being called is to redeclare it as private:
class B : public A {
public:
void foo(float);
private:
void foo(int);
};
And provide no implementation.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 665-7007 voice
_______________________________________________
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