mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 03:10:56 +00:00
Migrate deprecated bind1st and mem_fun to C++11 bind
This commit is contained in:
committed by
Thomas Krijnen
parent
bd3118b4a3
commit
3e041a1fb2
@@ -171,8 +171,7 @@ namespace IfcGeom
|
|||||||
|
|
||||||
bool operator()(IfcSchema::IfcProduct* prod) const
|
bool operator()(IfcSchema::IfcProduct* prod) const
|
||||||
{
|
{
|
||||||
// @note bind1st() and mem_fun() deprecated in C++11, use bind() and mem_fn() when migrating to C++11.
|
return filter::match(prod, std::bind(&string_arg_filter::match, this, std::placeholders::_1));
|
||||||
return filter::match(prod, std::bind1st(std::mem_fun(&string_arg_filter::match), this));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void update_description()
|
void update_description()
|
||||||
@@ -219,7 +218,7 @@ namespace IfcGeom
|
|||||||
|
|
||||||
bool operator()(IfcSchema::IfcProduct* prod) const
|
bool operator()(IfcSchema::IfcProduct* prod) const
|
||||||
{
|
{
|
||||||
return filter::match(prod, std::bind1st(std::mem_fun(&layer_filter::match), this));
|
return filter::match(prod, std::bind(&layer_filter::match, this, std::placeholders::_1));
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wildcards_match
|
struct wildcards_match
|
||||||
@@ -285,7 +284,7 @@ namespace IfcGeom
|
|||||||
|
|
||||||
bool operator()(IfcSchema::IfcProduct* prod) const
|
bool operator()(IfcSchema::IfcProduct* prod) const
|
||||||
{
|
{
|
||||||
return filter::match(prod, std::bind1st(std::mem_fun(&entity_filter::match), this));
|
return filter::match(prod, std::bind(&entity_filter::match, this, std::placeholders::_1));
|
||||||
}
|
}
|
||||||
|
|
||||||
void update_description()
|
void update_description()
|
||||||
|
|||||||
Reference in New Issue
Block a user