On Sun, May 24, 2015 at 6:21 PM, Edward Diener wrote:
I realize that changing boost::bind so by default that placeholders of the
form _n needing some sort of namespace in front of it will break plenty of
code, so I am not suggesting doing that. What I would like to suggest is a
Boost.bind macro, which when used before including , would put
the boost::bind placeholders of the form _n in a boost::placeholders
namespace.
I propose creating . Including it should result
in the placeholders being in boost::placeholders namespace.
would now do nothing more than just include
and bring all the placeholders into the global
namespace.
...
e.g. Contents of
#ifndef BOOST_BIND_HPP
#define BOOST_BIND_HPP
#include
using boost::placeholders::_1;
using boost::placeholders::_2;
using boost::placeholders::_3;
#endif
...
Documentation can be updated to remove all mention of
in favor of and now state that placeholders are
within boost::placeholders. (Existing code that includes
would not be affected).
Glen