home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!cs.utexas.edu!torn!watserv1!watmath!watmsg.waterloo.edu!pabuhr
- From: pabuhr@watmsg.waterloo.edu (Peter A. Buhr)
- Subject: Please Explain
- Message-ID: <1992Jul27.172122.23061@math.uwaterloo.ca>
- Sender: news@math.uwaterloo.ca (News Owner)
- Organization: University of Waterloo
- Date: Mon, 27 Jul 1992 17:21:22 GMT
- Lines: 29
-
- Can anyone explain why I get this error from this program and if there is a
- work around? Please mail directly to me. Compiled with AT&T Cfront 3.0.
-
- class fred {
- protected:
- int x;
- public:
- enum xxx { low, HIGH };
- };
-
- class inbetween : private fred {
- };
-
- class mary : public inbetween {
- public:
- fred::xxx jane( fred::xxx xp = fred::low ) {
- return xp;
- }
- };
-
- cd /u/pabuhr/
- CC test.cc
- CC test.cc:
- "test.cc", line 13: error: mary cannot access low : fred is a private base class
- 1 error
-
- Compilation exited abnormally with code 1 at Mon Jul 27 13:11:23
-
-
-