Boost logo

Boost Users :

Subject: Re: [Boost-users] [Fusion, maybe?] Workings of ADL.
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2010-09-08 10:58:43


On Wed, Sep 8, 2010 at 2:48 PM, Steven Watanabe <watanabesj_at_[hidden]>wrote:

> 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.
>

Thanks for that Steven - could you possibly give me a C++ Standard
reference for that?

Thx, Rob.



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