diff --git a/src/ifcgeom/IfcGeomElement.h b/src/ifcgeom/IfcGeomElement.h index c301f8d17c..2f2324725b 100644 --- a/src/ifcgeom/IfcGeomElement.h +++ b/src/ifcgeom/IfcGeomElement.h @@ -93,7 +93,7 @@ namespace IfcGeom { public: const Representation::BRep& geometry() const { return *_geometry; } ShapeModelElement(int id, int parent_id, const std::string& name, const std::string& type, const std::string& guid, const gp_Trsf& trsf, Representation::BRep* geometry) - : Element(geometry->settings(),id,parent_id,name,type,guid,trsf) + : Element

(geometry->settings(),id,parent_id,name,type,guid,trsf) , _geometry(geometry) {} virtual ~ShapeModelElement() { diff --git a/src/ifcgeom/IfcGeomIterator.h b/src/ifcgeom/IfcGeomIterator.h index 1bd47a1695..2a9368bcc1 100644 --- a/src/ifcgeom/IfcGeomIterator.h +++ b/src/ifcgeom/IfcGeomIterator.h @@ -61,6 +61,7 @@ #include #include #include +#include #include #include @@ -621,7 +622,7 @@ namespace IfcGeom { // TODO: Correctly implement destructor for IfcFile delete ifc_file; - std::vector*>::const_iterator it; + typename std::vector*>::const_iterator it; for (it = returned_elements.begin(); it != returned_elements.end(); ++ it ) { delete *it; } diff --git a/src/ifcgeom/IfcGeomRepresentation.h b/src/ifcgeom/IfcGeomRepresentation.h index 1f42ec1968..6f24cd6369 100644 --- a/src/ifcgeom/IfcGeomRepresentation.h +++ b/src/ifcgeom/IfcGeomRepresentation.h @@ -243,7 +243,7 @@ namespace IfcGeom { int i = (int) _verts.size() / 3; if (settings().weld_vertices()) { const VertexKey key = std::make_pair(material_index, std::make_pair(X, std::make_pair(Y, Z))); - VertexKeyMap::const_iterator it = welds.find(key); + typename VertexKeyMap::const_iterator it = welds.find(key); if ( it != welds.end() ) return it->second; i = (int) welds.size(); welds[key] = i;