mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
Fix build on gcc
This commit is contained in:
@@ -1732,8 +1732,7 @@ void IfcFile::removeEntity(IfcUtil::IfcBaseClass* entity) {
|
||||
entities_by_ref_t::iterator byref_it = byref.find(name);
|
||||
if (byref_it != byref.end()) {
|
||||
std::vector<unsigned>& ids = byref_it->second;
|
||||
std::vector<unsigned>::const_iterator removed_from = std::remove(ids.begin(), ids.end(), id);
|
||||
ids.erase(removed_from, ids.end());
|
||||
ids.erase(std::remove(ids.begin(), ids.end(), id), ids.end());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user