boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
#ifndef _PreComp_
|
||||
# include <assert.h>
|
||||
# include <string>
|
||||
# include <boost/bind.hpp>
|
||||
# include <boost/bind/bind.hpp>
|
||||
# include <QApplication>
|
||||
# include <QString>
|
||||
# include <QStatusBar>
|
||||
@@ -60,6 +60,7 @@ FC_LOG_LEVEL_INIT("Selection",false,true,true)
|
||||
|
||||
using namespace Gui;
|
||||
using namespace std;
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
SelectionGateFilterExternal::SelectionGateFilterExternal(const char *docName, const char *objName) {
|
||||
if(docName) {
|
||||
@@ -134,7 +135,7 @@ void SelectionObserver::attachSelection()
|
||||
resolve?Selection().signalSelectionChanged2:
|
||||
Selection().signalSelectionChanged);
|
||||
connectSelection = signal.connect(boost::bind
|
||||
(&SelectionObserver::_onSelectionChanged, this, _1));
|
||||
(&SelectionObserver::_onSelectionChanged, this, bp::_1));
|
||||
if(filterDocName.size())
|
||||
Selection().addSelectionGate(
|
||||
new SelectionGateFilterExternal(filterDocName.c_str(),filterObjName.c_str()));
|
||||
@@ -1761,8 +1762,8 @@ SelectionSingleton::SelectionSingleton()
|
||||
hz = 0;
|
||||
ActiveGate = 0;
|
||||
gateResolve = 1;
|
||||
App::GetApplication().signalDeletedObject.connect(boost::bind(&Gui::SelectionSingleton::slotDeletedObject, this, _1));
|
||||
signalSelectionChanged.connect(boost::bind(&Gui::SelectionSingleton::slotSelectionChanged, this, _1));
|
||||
App::GetApplication().signalDeletedObject.connect(boost::bind(&Gui::SelectionSingleton::slotDeletedObject, this, bp::_1));
|
||||
signalSelectionChanged.connect(boost::bind(&Gui::SelectionSingleton::slotSelectionChanged, this, bp::_1));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user