modernize C++: move from boost::bind to std::bind

This commit is contained in:
wmayer
2023-08-08 14:19:00 +02:00
committed by wwmayer
parent 7bb6f48dbd
commit 68d22d864b
64 changed files with 279 additions and 266 deletions

View File

@@ -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);