I wish to declare multiple C++ friend classes in one statement as below, just to tidy the code. The reason is, in my actual application, there will be three or four friend classes, so it'll be messier than this sample.
Is it possible in any way?
class A{
friend class B, C; // this doesn't work
// friend class B;
// friend class C; // these two would be okay
};
class B{};
class C{};