Is there a way to protect a data member of a public base class from use by users of the derived class? Some of the data members of the base should be publicly accessible but not all. Thanks for your attention.
So you have an exposed base class that you need to restrict derived class access to certain data members, but you cannot modify the code of the base class? So you're screwed then. You need to change this at the base.
Now there's an idea, a derived class from the base that copies the data members into private versions of the same thing. Someone give rapidcoder a cookie! That was pretty good!