boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include <Base/Console.h>
|
||||
|
||||
using namespace Gui;
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
std::vector<DocumentObserverPython*> DocumentObserverPython::_instances;
|
||||
|
||||
@@ -64,7 +65,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, _1));\
|
||||
boost::bind(&DocumentObserverPython::slot##_name1, this, bp::_1));\
|
||||
}\
|
||||
while(0);
|
||||
|
||||
@@ -72,7 +73,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, _1, _2));\
|
||||
boost::bind(&DocumentObserverPython::slot##_name1, this, bp::_1, bp::_2));\
|
||||
}\
|
||||
while(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user