token-name-resolution

Dependent name resolution & namespace std / Standard Library

久未见 提交于 2019-11-26 14:44:30
问题 While answering this SO question (better read this "duplicate"), I came up with the following solution to dependent name resolution of an operator: [temp.dep.res]/1: In resolving dependent names, names from the following sources are considered: Declarations that are visible at the point of definition of the template. Declarations from namespaces associated with the types of the function arguments both from the instantiation context (14.6.4.1) and from the definition context. #include