1
0
Fork 0

Replace boost::bind by std::bind and lambda function

This commit is contained in:
gallaert 2020-04-20 19:51:14 +01:00 committed by James Turner
parent 4854607382
commit 27ae79b5da
2 changed files with 4 additions and 4 deletions

View file

@ -18,6 +18,8 @@
#include "canvas_mgr.hxx"
#include <boost/bind.hpp>
#include <Cockpit/od_gauge.hxx>
#include <Main/fg_props.hxx>
#include <Scripting/NasalModelData.hxx>

View file

@ -13,8 +13,6 @@
#include <simgear/scene/util/OsgMath.hxx>
#include <simgear/debug/logstream.hxx>
#include <boost/bind.hpp>
#include <algorithm>
#include <cstring> // for strlen
@ -171,8 +169,8 @@ FGNasalModelData* FGNasalModelData::getByModuleId(unsigned int id)
(
_loaded_models.begin(),
_loaded_models.end(),
boost::bind(&FGNasalModelData::_module_id, _1) == id
);
[id] (const FGNasalModelData* const data) {
return data->_module_id == id; });
if( it != _loaded_models.end() )
return *it;