Replace boost::bind by std::bind and lambda function
This commit is contained in:
parent
4854607382
commit
27ae79b5da
2 changed files with 4 additions and 4 deletions
|
@ -18,6 +18,8 @@
|
||||||
|
|
||||||
#include "canvas_mgr.hxx"
|
#include "canvas_mgr.hxx"
|
||||||
|
|
||||||
|
#include <boost/bind.hpp>
|
||||||
|
|
||||||
#include <Cockpit/od_gauge.hxx>
|
#include <Cockpit/od_gauge.hxx>
|
||||||
#include <Main/fg_props.hxx>
|
#include <Main/fg_props.hxx>
|
||||||
#include <Scripting/NasalModelData.hxx>
|
#include <Scripting/NasalModelData.hxx>
|
||||||
|
|
|
@ -13,8 +13,6 @@
|
||||||
#include <simgear/scene/util/OsgMath.hxx>
|
#include <simgear/scene/util/OsgMath.hxx>
|
||||||
#include <simgear/debug/logstream.hxx>
|
#include <simgear/debug/logstream.hxx>
|
||||||
|
|
||||||
#include <boost/bind.hpp>
|
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cstring> // for strlen
|
#include <cstring> // for strlen
|
||||||
|
|
||||||
|
@ -171,8 +169,8 @@ FGNasalModelData* FGNasalModelData::getByModuleId(unsigned int id)
|
||||||
(
|
(
|
||||||
_loaded_models.begin(),
|
_loaded_models.begin(),
|
||||||
_loaded_models.end(),
|
_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() )
|
if( it != _loaded_models.end() )
|
||||||
return *it;
|
return *it;
|
||||||
|
|
Loading…
Add table
Reference in a new issue