Boost logo

Boost :

Subject: Re: [boost] [Iterator][MultiIndex]iterator-specificpartition_point-related functions
From: David Abrahams (dave_at_[hidden])
Date: 2008-11-28 14:40:02


on Fri Nov 28 2008, Steven Watanabe <watanabesj-AT-gmail.com> wrote:

> AMDG
>
> David Abrahams wrote:
>>> This may lead to ambiguities between std::lower_bound and boost::lower_bound if
>>> other non-boost libraries do
>>>
>>> using std::lower_bound;
>>> lowerbound( ... ) // unqualified, the well-intentioned implementor wants to allow
> ADL
>>>
>>> The Visual Studio 2008 std library makes such unqualified calls, so it suffers from
>>> this ambiguity.
>>
>> I don't see a problem. boost::lower_bound can be implemented inside
>> namespace boost::lower_bound_:: and brought out with a using declaration
>> so there's no ADL conflict.
>>
>
> Didn't we agree that that doesn't work:
> http://lists.boost.org/Archives/boost/2008/07/140502.php

Umm, right, sorry. Use a using-directive for that.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk