$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-03-07 11:53:29
Ben Hutchings wrote:
> Peter Dimov wrote:
>> Ian McCulloch wrote:
>>
>>> Peter Dimov wrote:
> <snip>
>>>> * If four libraries need the same operation, you need to specialize
>>>> four primary templates.
>>>
>>>
>>> Compare to four libraries using an ADL lookup on the same function
>>> name, but requiring different semantics?
>>
>>
>> Then these libraries are incompatible with each other, which will be
>> reported as a bug.
>
> How does one decide which library the bug is in?
No simple answer.
> Doesn't this potential for incompatibility mean that ADL erases to a
> large extent the intended benefit of namespaces?
In the context of our discussion: it depends on what do you think is the
intended benefit of namespaces. In general: yes, unqualified calls that
weren't intended to be customization points do not respect namespaces.