Re: Please Help: Objective-C++ / C++ mix and public inheritance
Re: Please Help: Objective-C++ / C++ mix and public inheritance
- Subject: Re: Please Help: Objective-C++ / C++ mix and public inheritance
- From: James Weatherley <email@hidden>
- Date: Mon, 5 Jul 2004 08:40:12 +0100
I modified your code into something that builds with no errors:
#import <Cocoa/Cocoa.h>
class A {
public:
A() {};
protected:
int blah;
};
class B : public A {
public:
B() {blah = 1;}
};
int main()
{
A a;
B b;
return 0;
}
I think you'll have to be a bit more specific in your example. Show
some real code that builds with a public member and fails with a
protected.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.