boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
# include <QKeyEvent>
|
||||
# include <QMessageBox>
|
||||
# include <QtConcurrentMap>
|
||||
# include <boost/bind.hpp>
|
||||
# include <boost/bind/bind.hpp>
|
||||
# include <Python.h>
|
||||
# include <Inventor/nodes/SoBaseColor.h>
|
||||
# include <Inventor/nodes/SoCoordinate3.h>
|
||||
@@ -63,6 +63,7 @@
|
||||
#include <Base/UnitsApi.h>
|
||||
|
||||
using namespace MeshPartGui;
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
namespace MeshPartGui {
|
||||
class ViewProviderCrossSections : public Gui::ViewProvider
|
||||
@@ -274,7 +275,7 @@ void CrossSections::apply()
|
||||
|
||||
MeshCrossSection cs(kernel, grid, a, b, c, connectEdges, eps);
|
||||
QFuture< std::list<TopoDS_Wire> > future = QtConcurrent::mapped
|
||||
(d, boost::bind(&MeshCrossSection::section, &cs, _1));
|
||||
(d, boost::bind(&MeshCrossSection::section, &cs, bp::_1));
|
||||
future.waitForFinished();
|
||||
|
||||
TopoDS_Compound comp;
|
||||
|
||||
Reference in New Issue
Block a user