boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated

This commit is contained in:
wmayer
2020-06-09 12:55:29 +02:00
committed by wwmayer
parent 3f212ad8ac
commit 4ec45b545e
112 changed files with 451 additions and 390 deletions

View File

@@ -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));
}
/**