modernize C++: move from boost::bind to std::bind
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
|
||||
|
||||
using namespace Gui;
|
||||
namespace bp = boost::placeholders;
|
||||
namespace sp = std::placeholders;
|
||||
|
||||
std::vector<DocumentObserverPython*> DocumentObserverPython::_instances;
|
||||
|
||||
@@ -62,7 +62,7 @@ DocumentObserverPython::DocumentObserverPython(const Py::Object& obj) : inst(obj
|
||||
FC_PY_GetCallable(obj.ptr(), "slot" #_name1, py##_name1.py);\
|
||||
if (!py##_name1.py.isNone())\
|
||||
py##_name1.slot = Application::Instance->signal##_name2.connect(\
|
||||
boost::bind(&DocumentObserverPython::slot##_name1, this, bp::_1));\
|
||||
std::bind(&DocumentObserverPython::slot##_name1, this, sp::_1));\
|
||||
}\
|
||||
while(0);
|
||||
|
||||
@@ -70,7 +70,7 @@ DocumentObserverPython::DocumentObserverPython(const Py::Object& obj) : inst(obj
|
||||
FC_PY_GetCallable(obj.ptr(), "slot" #_name1, py##_name1.py);\
|
||||
if (!py##_name1.py.isNone())\
|
||||
py##_name1.slot = Application::Instance->signal##_name2.connect(\
|
||||
boost::bind(&DocumentObserverPython::slot##_name1, this, bp::_1, bp::_2));\
|
||||
std::bind(&DocumentObserverPython::slot##_name1, this, sp::_1, sp::_2));\
|
||||
}\
|
||||
while(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user