diff --git a/src/ifcgeom/profile_helper.h b/src/ifcgeom/profile_helper.h index 4f11519def..849b43631d 100644 --- a/src/ifcgeom/profile_helper.h +++ b/src/ifcgeom/profile_helper.h @@ -9,6 +9,10 @@ namespace ifcopenshell { struct profile_point { std::array xy; boost::optional radius; + + profile_point(const std::array& p, const boost::optional& r = boost::none) + : xy(p), radius(r) { + } }; struct profile_point_with_edges { diff --git a/src/ifcparse/IfcEntityInstanceData.h b/src/ifcparse/IfcEntityInstanceData.h index 6333af1796..ff0b8b1ab5 100644 --- a/src/ifcparse/IfcEntityInstanceData.h +++ b/src/ifcparse/IfcEntityInstanceData.h @@ -298,22 +298,22 @@ struct AttributeValue { AttributeValue() : index_(0) - , array_((const in_memory_attribute_storage*)nullptr) , storage_model_(0) + , array_((const in_memory_attribute_storage*)nullptr) {} AttributeValue(const in_memory_attribute_storage* arr, uint8_t index) : index_(index) - , array_(arr) , storage_model_(0) + , array_(arr) {} AttributeValue(IfcParse::impl::rocks_db_file_storage* db, size_t instance_name, uint8_t entity_or_type, uint8_t index) : index_(index) - , array_(db) , storage_model_(1) - , instance_name_(instance_name) , entity_or_type_(entity_or_type) + , instance_name_(instance_name) + , array_(db) {} operator int() const;