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

@@ -39,7 +39,7 @@ FC_LOG_LEVEL_INIT("App", true);
using namespace App;
using namespace Base;
using namespace boost;
using namespace boost::placeholders;
namespace sp = std::placeholders;
TYPESYSTEM_SOURCE_ABSTRACT(App::PropertyExpressionContainer , App::PropertyXLinkContainer)
@@ -182,11 +182,11 @@ void PropertyExpressionEngine::hasSetValue()
auto &propDeps = pimpl->propMap[key];
if(propDeps.empty()) {
if(!propName.empty())
pimpl->conns.emplace_back(obj->signalChanged.connect(boost::bind(
&PropertyExpressionEngine::slotChangedProperty,this,_1,_2)));
pimpl->conns.emplace_back(obj->signalChanged.connect(std::bind(
&PropertyExpressionEngine::slotChangedProperty,this,sp::_1,sp::_2)));
else
pimpl->conns.emplace_back(obj->signalChanged.connect(boost::bind(
&PropertyExpressionEngine::slotChangedObject,this,_1,_2)));
pimpl->conns.emplace_back(obj->signalChanged.connect(std::bind(
&PropertyExpressionEngine::slotChangedObject,this,sp::_1,sp::_2)));
}
propDeps.push_back(e.first);
}