Is it possible that the second part says "insert immediately", and the first does not? Therefore, I understand that if a class is declared in a non-classical scope (for example, in a namespace or global), it can only be immediately covering the scope (one at the top). If it is declared in a covered class (I think, nested classes), it can be as high as possible.
The value matters:
class Grandpa
{
class Mother
{
class Junior
{
friend class Grandpa;
};
};
};
Just because there Grandpaare a few "class areas" above Junior.
source
share