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

@@ -37,12 +37,13 @@
#include <Mod/Part/App/PartFeature.h>
#include <Mod/Drawing/App/FeaturePage.h>
#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
using namespace Gui;
using namespace DrawingGui;
using namespace std;
namespace bp = boost::placeholders;
#ifndef PI
@@ -304,9 +305,9 @@ OrthoViews::OrthoViews(App::Document* doc, const char * pagename, const char * p
num_gaps_x = num_gaps_y = 0;
this->connectDocumentDeletedObject = doc->signalDeletedObject.connect(boost::bind
(&OrthoViews::slotDeletedObject, this, _1));
(&OrthoViews::slotDeletedObject, this, bp::_1));
this->connectApplicationDeletedDocument = App::GetApplication().signalDeleteDocument.connect(boost::bind
(&OrthoViews::slotDeletedDocument, this, _1));
(&OrthoViews::slotDeletedDocument, this, bp::_1));
}
OrthoViews::~OrthoViews()