This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ Protected Class Members are Private???


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]