Boost logo

Boost Users :

Subject: Re: [Boost-users] [Fusion, maybe?] Workings of ADL.
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2010-09-09 04:01:56


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

> AMDG
>
> Robert Jones wrote:
>
>> On Wed, Sep 8, 2010 at 2:48 PM, Steven Watanabe <watanabesj_at_[hidden]
>> >wrote:
>>
>>
>>> 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?
>>
>>
>
> 14.8.1/6:
> "... But when a function template with explicit template arguments
> is used, the call does not have the correct syntactic form unless
> there is a function template with that name visible at the point of
> the call...."
>
>
Once again thank you Steven - I've found the reference, in particular the
very clear example, but the rationale behind it eludes me!

- 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