boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user