Hello, suppose that I have a class A with several subclasses (B, C, and D). I need B C and D to access some protected members from a class E. Is it possible to make B, C and D friends of E in a single hit without having to list them all?
I have tried with:
class E {
friend class A;
...
};
But this doesn't work.
Thank you