You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any unqualified lookup for the identifier (in the first case) does not consider scopes that contain the nearest enclosing namespace or block scope; [...]
Therefore, in the declaration friend class A above, ::A (in global scope) should not be found. The friendship of B should instead be granted to the local class A declared inside f.