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 88fd77b31d
commit 730154a684
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 <QCoreApplication>
@@ -36,6 +36,7 @@
#include <App/DocumentObject.h>
using namespace App;
namespace bp = boost::placeholders;
namespace App {
@@ -127,9 +128,9 @@ private:
MergeDocuments::MergeDocuments(App::Document* doc) : guiup(false), verbose(true), 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));
QCoreApplication* app = QCoreApplication::instance();
if (app && app->inherits("QApplication")) {