$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-06-14 15:46:44
Howard Hinnant wrote:
> One also has to watch out for ADL in the namespaces of template
> arguments (another common accidental use of ADL). For example:
>
> std::vector<N::MyClass, M::MyAllocator> v;
>
> foo(v); // searches std, N, M
One common problem of this kind is
template< class T, class A = std::allocator<T> > class X;
X<int> x;
foo( x ); // searches std