diff --git a/src/ifcparse/IfcUntypedEntity.cpp b/src/ifcparse/IfcUntypedEntity.cpp index 2c8b5d624b..edb0c86c62 100644 --- a/src/ifcparse/IfcUntypedEntity.cpp +++ b/src/ifcparse/IfcUntypedEntity.cpp @@ -147,7 +147,7 @@ IfcEntities IfcParse::IfcUntypedEntity::get_inverse(const std::string& a) { std::pair inv = IfcSchema::Type::GetInverseAttribute(_type, a); IfcEntities invs = entity->getInverse(inv.first); IfcEntities filtered(new IfcEntityList()); - for (auto it = invs->begin(); it != invs->end(); ++it) { + for (IfcEntityList::it it = invs->begin(); it != invs->end(); ++it) { try { const int id = *(*it)->entity->getArgument(inv.second); if (id == this->entity->id()) { filtered->push(*it); }