What is the fully qualified name of a friend function defined inside of a class?
Is argument-dependent lookup the only way val() can be found? Yes, it is the only way. To quote the holy standard at [namespace.memdef]/3: If a friend declaration in a non-local class first declares a class, function, class template or function template the friend is a member of the innermost enclosing namespace. The friend declaration does … Read more