Possible Duplicate:
Is this key-oriented access-protection pattern a known idiom?
I have class A and class B.
I want class A to access one of class B's private functions, but only that, not everything else. Is that possible?
Thanks
Some kind of example:
class A {
//stuff
};
class B {
int r; //A cant use this
MagicFriendKeyword A void func(); //A can use this
public:
};