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

@@ -23,7 +23,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <stack>
# include <boost/bind.hpp>
# include <boost/bind/bind.hpp>
#endif
#include "MergeDocuments.h"
#include <Base/Console.h>
@@ -36,6 +36,7 @@
#include <Gui/ViewProvider.h>
using namespace Gui;
namespace bp = boost::placeholders;
namespace Gui {
@@ -122,9 +123,9 @@ private:
MergeDocuments::MergeDocuments(App::Document* doc) : stream(0), appdoc(doc)
{
connectExport = doc->signalExportObjects.connect
(boost::bind(&MergeDocuments::exportObject, this, _1, _2));
(boost::bind(&MergeDocuments::exportObject, this, bp::_1, bp::_2));
connectImport = doc->signalImportObjects.connect
(boost::bind(&MergeDocuments::importObject, this, _1, _2));
(boost::bind(&MergeDocuments::importObject, this, bp::_1, bp::_2));
document = Gui::Application::Instance->getDocument(doc);
}