25 May
2015
25 May
'15
11:12 a.m.
Glen Fernandes wrote:
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.
That's not a bad plan, but it would've been even better if boost/bind/bind.hpp didn't already exist. :-)
#include
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.