|
Boost Users : |
Subject: Re: [Boost-users] [Fusion, maybe?] Workings of ADL.
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-09-08 09:48:48
AMDG
Robert Jones wrote:
> I expected this to work
>
> #include <boost/fusion/include/vector.hpp>
> #include <boost/fusion/include/at_c.hpp>
>
> typedef boost::fusion::vector<int, int> V;
>
> int first( const V & v )
> {
> return at_c<0>( v );
> }
>
> but I find I need a "using namespace boost::fusion;". Why isn't
> this covered by ADL?
>
When calling a function template with
explicit template arguments, ADL is only
activated if at least one overload is found
by normal lookup.
In Christ,
Steven Watanabe
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