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 2bb3dd1c7e
commit 52e1c7c33b
64 changed files with 279 additions and 266 deletions

View File

@@ -47,7 +47,7 @@ FC_LOG_LEVEL_INIT("App::Link", true,true)
using namespace App;
using namespace Base;
namespace bp = boost::placeholders;
namespace sp = std::placeholders;
using CharRange = boost::iterator_range<const char*>;
@@ -1540,7 +1540,7 @@ void LinkBaseExtension::updateGroup() {
FC_LOG("new group connection " << getExtendedObject()->getFullName()
<< " -> " << group->getFullName());
conn = group->signalChanged.connect(
boost::bind(&LinkBaseExtension::slotChangedPlainGroup,this,bp::_1,bp::_2));
std::bind(&LinkBaseExtension::slotChangedPlainGroup,this,sp::_1,sp::_2));
}
std::size_t count = children.size();
ext->getAllChildren(children,childSet);
@@ -1554,7 +1554,7 @@ void LinkBaseExtension::updateGroup() {
FC_LOG("new group connection " << getExtendedObject()->getFullName()
<< " -> " << child->getFullName());
conn = child->signalChanged.connect(
boost::bind(&LinkBaseExtension::slotChangedPlainGroup,this,bp::_1,bp::_2));
std::bind(&LinkBaseExtension::slotChangedPlainGroup,this,sp::_1,sp::_2));
}
}
}