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

@@ -27,7 +27,7 @@
# include <QPushButton>
# include <sstream>
# include <Python.h>
# include <boost/bind.hpp>
# include <boost/bind/bind.hpp>
# include <TopoDS_Shape.hxx>
# include <TopoDS_Vertex.hxx>
@@ -79,6 +79,8 @@
#include "TaskDimension.h"
namespace bp = boost::placeholders;
static bool _MeasureInfoInited;
static void slotDeleteDocument(const App::Document &doc);
@@ -92,7 +94,7 @@ struct MeasureInfo {
{
if(!_MeasureInfoInited) {
_MeasureInfoInited = true;
App::GetApplication().signalDeleteDocument.connect(boost::bind(slotDeleteDocument, _1));
App::GetApplication().signalDeleteDocument.connect(boost::bind(slotDeleteDocument, bp::_1));
}
}
};