No no. This is pure compilation: similar to access modifiers.
Even though you are writing a declaration inside a class, you really are not adding a friend to the class. You basically declare something else as a friend of the class and simply allow it to access the private members of the class, as if they were public.
Mehrdad afshari
source share