• 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: Please Help: Objective-C++ / C++ mix and public inheritance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: alternating background in rows of NSCell subclass
  • Next by Date: Re: Record audio from microphone?
  • Previous by thread: Please Help: Objective-C++ / C++ mix and public inheritance
  • Next by thread: CFPlugin & Cocoa
  • Index(es):
    • Date
    • Thread