Boost logo

Boost Users :

From: me22 (me22.ca_at_[hidden])
Date: 2006-06-14 11:04:55


On 6/14/06, Kobi Cohen-Arazi <kobi.cohenarazi_at_[hidden]> wrote:
> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net