modernize C++: move from boost::bind to std::bind
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
|
||||
|
||||
using namespace Reen;
|
||||
namespace bp = boost::placeholders;
|
||||
namespace sp = std::placeholders;
|
||||
|
||||
// SplineBasisfunction
|
||||
|
||||
@@ -1092,7 +1092,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, bp::_1));
|
||||
(columns, std::bind(&ScalarProduct::multiply, &scalar, sp::_1));
|
||||
QFutureWatcher< std::vector<double> > watcher;
|
||||
watcher.setFuture(future);
|
||||
watcher.waitForFinished();
|
||||
|
||||
Reference in New Issue
Block a user