Boost logo

Boost Users :

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.


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