What is “Argument-Dependent Lookup” (aka ADL, or “Koenig Lookup”)?
问题 What are some good explanations on what argument dependent lookup is? Many people also call it Koenig Lookup as well. Preferably I\'d like to know: Why is it a good thing? Why is it a bad thing? How does it work? 回答1: Koenig Lookup , or Argument Dependent Lookup , describes how unqualified names are looked up by the compiler in C++. The C++11 standard § 3.4.2/1 states: When the postfix-expression in a function call (5.2.2) is an unqualified-id, other namespaces not considered during the usual