Re: [Boost-bugs] [Boost C++ Libraries] #11902: bind placeholder _1 is not defined

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11902: bind placeholder _1 is not defined
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-01-23 19:14:45


#11902: bind placeholder _1 is not defined
-------------------------------+---------------------
  Reporter: zimmermann@… | Owner: pdimov
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: bind
   Version: Boost 1.60.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------

Comment (by pdimov):

 This is by design; from now on, ```#include <boost/bind/bind.hpp>```
 defines ```_1``` in namespace ```boost::placeholders``` without importing
 it into the global namespace, to avoid conflicts. For backward
 compatibility, ```#include <boost/bind.hpp>``` includes
 ```boost/bind/bind.hpp``` and does ```using namespace
 boost::placeholders;```.

 So, to make the code compile, either include ```boost/bind.hpp``` instead,
 or add ```using namespace boost::placeholders;```.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11902#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC