modernize C++: move from boost::bind to std::bind
This commit is contained in:
@@ -89,9 +89,10 @@
|
||||
#undef DEBUG
|
||||
// #define DEBUG
|
||||
|
||||
// clang-format off
|
||||
using namespace Sketcher;
|
||||
using namespace Base;
|
||||
namespace bp = boost::placeholders;
|
||||
namespace sp = std::placeholders;
|
||||
|
||||
FC_LOG_LEVEL_INIT("Sketch", true, true)
|
||||
|
||||
@@ -152,12 +153,12 @@ SketchObject::SketchObject()
|
||||
noRecomputes = false;
|
||||
|
||||
ExpressionEngine.setValidator(
|
||||
boost::bind(&Sketcher::SketchObject::validateExpression, this, bp::_1, bp::_2));
|
||||
std::bind(&Sketcher::SketchObject::validateExpression, this, sp::_1, sp::_2));
|
||||
|
||||
constraintsRemovedConn = Constraints.signalConstraintsRemoved.connect(
|
||||
boost::bind(&Sketcher::SketchObject::constraintsRemoved, this, bp::_1));
|
||||
std::bind(&Sketcher::SketchObject::constraintsRemoved, this, sp::_1));
|
||||
constraintsRenamedConn = Constraints.signalConstraintsRenamed.connect(
|
||||
boost::bind(&Sketcher::SketchObject::constraintsRenamed, this, bp::_1));
|
||||
std::bind(&Sketcher::SketchObject::constraintsRenamed, this, sp::_1));
|
||||
|
||||
analyser = new SketchAnalysis(this);
|
||||
|
||||
@@ -9648,3 +9649,4 @@ PyObject* Sketcher::SketchObjectPython::getPyObject()
|
||||
// explicit template instantiation
|
||||
template class SketcherExport FeaturePythonT<Sketcher::SketchObject>;
|
||||
}// namespace App
|
||||
// clang-format on
|
||||
|
||||
Reference in New Issue
Block a user