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