[Boost-bugs] [Boost C++ Libraries] #12111: use std placeholders in boost::bind in c++11

Subject: [Boost-bugs] [Boost C++ Libraries] #12111: use std placeholders in boost::bind in c++11
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-04-03 20:30:11


#12111: use std placeholders in boost::bind in c++11
------------------------------+---------------------
 Reporter: anonymous | Owner: pdimov
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: bind
  Version: Boost 1.60.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 Currently boost::bind imports its placeholders into the global namespace.
 Note that this can also happen if you do not just use boost bind at all,
 since multiple other boost libraries like boost::thread, boost::iostreams
 or boost::multi_index also include boost/bind.hpp in some way.

 This clashes with std placeholders if people want to use them like they
 did previously with boost placeholders (in global namespace). Because _1
 .. _N are now aliases to both the boost placeholders and the std
 placeholders.

 To me it seems like the best way to fix this is to make boost bind use std
 placeholders when used with c++11 so that the boost::bind::placeholders
 namespace just becomes and alias for std::placeholders

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12111>
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:20 UTC