I have a class Controller which has the class Parent as friend:
class Controller {
// I can use x;
};
class Parent {
friend class Controller;
int x;
};
Is there a way to specify that the whole subclass hierarchy of Parent will have Controller as friend without explicitly specifying it in every single class of the 300 I have?
