M
MoCha
hello everyone,
i want to know of any trick used to restrict the access scope of a
friend class (or function). ie instead of the friend class having
access to the entire internals of the class in question, let it have
access to a few private/protected members.
this problem is cropping up several times. giving the friend class
full access does not seem right n at the same time the function(s) r
not reqd by anyone else.
thanx in advance for any suggestions or comments.
i want to know of any trick used to restrict the access scope of a
friend class (or function). ie instead of the friend class having
access to the entire internals of the class in question, let it have
access to a few private/protected members.
this problem is cropping up several times. giving the friend class
full access does not seem right n at the same time the function(s) r
not reqd by anyone else.
thanx in advance for any suggestions or comments.