This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ Protected Class Members are Private???
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Mongryong <Mongryong at sympatico dot ca>
- Cc: gcc at gnu dot org
- Date: Wed, 19 Feb 2003 20:54:07 +0000
- Subject: Re: C++ Protected Class Members are Private???
- References: <1045681848.1364.18.camel@refugeeMedia>
Mongryong wrote:-
> // now, this generates a compiler error!!!
> // right->left: left is protected and can't be accessed??
> left = right->left;
left = this->left is OK, but not right->left because it's a different
object. At least, that's my understanding. Welcome to C++.
Neil.