modernize C++: move from boost::bind to std::bind

This commit is contained in:
wmayer
2023-08-08 14:19:00 +02:00
committed by wwmayer
parent 7bb6f48dbd
commit 68d22d864b
64 changed files with 279 additions and 266 deletions

View File

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