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
Argument-dependent lookup finds all declarations of functions and function templates that
are found by a search of any associated namespace, or
are declared as a friend ([class.friend]) of any class with a reachable definition in the set of associated entities, or
It sounds like we impose no requirement on the friend declarations when ADL. According to [dcl.meaning.general] p2, the declaration of a friend declaration does not bind a name. we define the concept for wording search that works on the name is bound. It is not suitable for friend declaration. The improvement is:
Argument-dependent lookup finds all declarations of functions and function templates that
[...], or
are declared as a friend of any class with a reachable definition in the set of associated entities, where the terminal names of the declarator-ids of the declarations are the same as the name that is being found.
The text was updated successfully, but these errors were encountered:
@languagelawyer Yes, you're correct. We should modify the above wording to that
are declared as a friend of any class T with a reachable definition in the set of associated entities, and whose target scopes are the namespace of which T is a member and the terminal names of the declarator-ids are the same as the name that is being found.
[basic.lookup.argdep] p4 is saying:
It sounds like we impose no requirement on the friend declarations when ADL. According to [dcl.meaning.general] p2, the declaration of a friend declaration does not bind a name. we define the concept for wording search that works on the name is bound. It is not suitable for friend declaration. The improvement is:
The text was updated successfully, but these errors were encountered: