
14 Jun
2006
14 Jun
'06
3:04 p.m.
On 6/14/06, Kobi Cohen-Arazi
What does it mean protection from unintended ADL?
Using ADL, unqualified function names are looked up in the namespaces in which the arguments to the function are defined. Presumably if noncopyable were defined in namespace boost, then function calls involving classes deriving from noncopyable would get namespace boost added to the ADL scopes in which the function is looked up. Usually this isn't wanted, as noncopyable is an implementation detail, not an interface. ~ Scott McMurray