boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
#include <QFuture>
|
||||
#include <QFutureWatcher>
|
||||
#include <QtConcurrentMap>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/bind/bind.hpp>
|
||||
|
||||
#include <Mod/Mesh/App/Core/Approximation.h>
|
||||
#include <Base/Sequencer.h>
|
||||
@@ -40,6 +40,7 @@
|
||||
#include "ApproxSurface.h"
|
||||
|
||||
using namespace Reen;
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
// SplineBasisfunction
|
||||
|
||||
@@ -1090,7 +1091,7 @@ bool BSplineParameterCorrection::SolveWithSmoothing(double fWeight)
|
||||
std::generate(columns.begin(), columns.end(), Base::iotaGen<int>(0));
|
||||
ScalarProduct scalar(M);
|
||||
QFuture< std::vector<double> > future = QtConcurrent::mapped
|
||||
(columns, boost::bind(&ScalarProduct::multiply, &scalar, _1));
|
||||
(columns, boost::bind(&ScalarProduct::multiply, &scalar, bp::_1));
|
||||
QFutureWatcher< std::vector<double> > watcher;
|
||||
watcher.setFuture(future);
|
||||
watcher.waitForFinished();
|
||||
|
||||
Reference in New Issue
Block a user