boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
#include <boost/range/algorithm/copy.hpp>
|
||||
#include <boost/assign.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/bind/bind.hpp>
|
||||
#include <boost/regex.hpp>
|
||||
#include <Base/Console.h>
|
||||
#include <App/Document.h>
|
||||
@@ -49,6 +49,7 @@ FC_LOG_LEVEL_INIT("Spreadsheet", true, true)
|
||||
using namespace App;
|
||||
using namespace Base;
|
||||
using namespace Spreadsheet;
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
TYPESYSTEM_SOURCE(Spreadsheet::PropertySheet , App::PropertyExpressionContainer)
|
||||
|
||||
@@ -682,7 +683,7 @@ void PropertySheet::insertRows(int row, int count)
|
||||
boost::copy( data | boost::adaptors::map_keys, std::back_inserter(keys));
|
||||
|
||||
/* Sort them */
|
||||
std::sort(keys.begin(), keys.end(), boost::bind(&PropertySheet::rowSortFunc, this, _1, _2));
|
||||
std::sort(keys.begin(), keys.end(), boost::bind(&PropertySheet::rowSortFunc, this, bp::_1, bp::_2));
|
||||
|
||||
MoveCellsExpressionVisitor<PropertySheet> visitor(*this,
|
||||
CellAddress(row, CellAddress::MAX_COLUMNS), count, 0);
|
||||
@@ -733,7 +734,7 @@ void PropertySheet::removeRows(int row, int count)
|
||||
boost::copy(data | boost::adaptors::map_keys, std::back_inserter(keys));
|
||||
|
||||
/* Sort them */
|
||||
std::sort(keys.begin(), keys.end(), boost::bind(&PropertySheet::rowSortFunc, this, _1, _2));
|
||||
std::sort(keys.begin(), keys.end(), boost::bind(&PropertySheet::rowSortFunc, this, bp::_1, bp::_2));
|
||||
|
||||
MoveCellsExpressionVisitor<PropertySheet> visitor(*this,
|
||||
CellAddress(row + count - 1, CellAddress::MAX_COLUMNS), -count, 0);
|
||||
@@ -825,7 +826,7 @@ void PropertySheet::removeColumns(int col, int count)
|
||||
boost::copy(data | boost::adaptors::map_keys, std::back_inserter(keys));
|
||||
|
||||
/* Sort them */
|
||||
std::sort(keys.begin(), keys.end(), boost::bind(&PropertySheet::colSortFunc, this, _1, _2));
|
||||
std::sort(keys.begin(), keys.end(), boost::bind(&PropertySheet::colSortFunc, this, bp::_1, bp::_2));
|
||||
|
||||
MoveCellsExpressionVisitor<PropertySheet> visitor(*this,
|
||||
CellAddress(CellAddress::MAX_ROWS, col + count - 1), 0, -count);
|
||||
@@ -1129,7 +1130,7 @@ void PropertySheet::slotChangedObject(const App::DocumentObject &obj, const App:
|
||||
|
||||
void PropertySheet::onAddDep(App::DocumentObject *obj) {
|
||||
depConnections[obj] = obj->signalChanged.connect(boost::bind(
|
||||
&PropertySheet::slotChangedObject, this, _1, _2));
|
||||
&PropertySheet::slotChangedObject, this, bp::_1, bp::_2));
|
||||
}
|
||||
|
||||
void PropertySheet::onRemoveDep(App::DocumentObject *obj) {
|
||||
|
||||
Reference in New Issue
Block a user