diff --git a/src/ifcgeom/Iterator.h b/src/ifcgeom/Iterator.h index c589d764e7..c34713dabf 100644 --- a/src/ifcgeom/Iterator.h +++ b/src/ifcgeom/Iterator.h @@ -669,7 +669,7 @@ namespace IfcGeom { instance_type = ifc_entity->declaration().name(); if (ifc_entity->declaration().is("IfcRoot")) { - product_guid = *ifc_entity->get("GlobalId"); + product_guid = (std::string) *ifc_entity->get("GlobalId"); product_name = ifc_entity->get_value("Name", ""); }