Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-11-29 20:35:17


Peter Dimov wrote:
> Peter Dimov wrote:
>
>> David Abrahams wrote:
>>
>>> boost/bind.hpp
>>>
>>> #include <boost/bind/bind.hpp>
>>> #include <boost/bind/placeholders.hpp>
>>> namespace { using namespace boost::bind::placeholders; }
>>
>>
>> This, of course, will still require you to use mpl::_1. I assume that
>> you intend to fix all your includes to belong to... err, point to the
>> using-directive-less version?
>
>
> And to expand on that, you surely realize that this won't help either,
> because the user can #include <boost/bind.hpp> before your header and
> reintroduce the ambiguity?

It won't prevent me from having to use qualification or local "using."
It will help because I won't be forcing the ambiguity problem on the
user just by dint of #including a boost header.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

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