Friend lookup exception from template-id?
问题 Consider the following clause in [namespace.memdef]/3: If the name in a friend declaration is neither qualified nor a template-id and the declaration is a function or an elaborated-type-specifier , the lookup to determine whether the entity has been previously declared shall not consider any scopes outside the innermost enclosing namespace. Is there a reason for the exception for template-id along with the qualified name? For that matter, is there a reason for the lookup of an unqualified