diff --git a/src/examples/IfcParseExamples.cpp b/src/examples/IfcParseExamples.cpp index 8af17f7717..c4ae63b31d 100644 --- a/src/examples/IfcParseExamples.cpp +++ b/src/examples/IfcParseExamples.cpp @@ -58,9 +58,9 @@ struct is_ifc4_or_higher> : s typedef std::map> element_properties; #ifdef SCHEMA_HAS_IfcBuildingElement -typedef IfcSchema::IfcBuildingElement element_t +typedef IfcSchema::IfcBuildingElement element_t; #else -typedef IfcSchema::IfcBuiltElement element_t +typedef IfcSchema::IfcBuiltElement element_t; #endif std::string format_string(const AttributeValue& argument) { @@ -242,7 +242,7 @@ int main(int argc, char** argv) { // we need to cast them to IfcWindows. Since these properties // are optional we need to make sure the properties are // defined for the window in question before accessing them. - example_element_type::list::ptr elements = file.instances_by_type(); + auto elements = file.instances_by_type(); std::cout << "Found " << elements->size() << " elements in " << argv[1] << ":" << std::endl;