C++17 compat

This commit is contained in:
Thomas Krijnen
2021-02-21 16:34:34 +01:00
parent 7852c06ab7
commit 7812ecb189
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ struct collection : public geom_item {
collection() {}
collection(const collection& other) {
std::transform(other.children.begin(), other.children.end(), std::back_inserter(children), std::mem_fun(&item::clone));
std::transform(other.children.begin(), other.children.end(), std::back_inserter(children), std::mem_fn(&item::clone));
}
template <typename T>
+3 -3
View File
@@ -243,7 +243,7 @@ namespace IfcParse {
std::vector<const inverse_attribute*> inverse_attributes_;
class attribute_by_name_cmp : public std::unary_function<const attribute*, bool> {
class attribute_by_name_cmp {
private:
std::string name_;
public:
@@ -399,14 +399,14 @@ namespace IfcParse {
std::vector<const enumeration_type*> enumeration_types_;
std::vector<const entity*> entities_;
class declaration_by_name_cmp : public std::binary_function<const declaration*, const std::string&, bool> {
class declaration_by_name_cmp {
public:
bool operator()(const declaration* decl, const std::string& name) {
return decl->name_lc() < name;
}
};
class declaration_by_index_sort : public std::binary_function<const declaration*, const declaration*, bool> {
class declaration_by_index_sort {
public:
bool operator()(const declaration* a, const declaration* b) {
return a->index_in_schema() < b->index_in_schema();