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

@@ -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;