Boost logo

Boost :

Subject: Re: [boost] [bind] Placeholders suggestion, std and boost
From: Glen Fernandes (glen.fernandes_at_[hidden])
Date: 2015-05-25 11:35:50


On Mon, May 25, 2015 at 4:12 AM, Peter Dimov wrote:
> Glen Fernandes wrote:
>>
>> #include <boost/bind/bind.hpp>
>>
>> using boost::placeholders::_1;
>
>
> I'm having a bit of trouble deciding between the above and
>
> using namespace boost::placeholders;
>
> The using declarations are closer to the current code and would be a better
> bet compatibility-wise, but the using directive seems more correct somehow.

With the former, ::boost::placeholders::detail (if it exists now, or
will in the future) would not become ::detail, if that matters.

Glen


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