Don't try and set empty aggregates (todo: see if they are still needed with the type-aware upgrade-based parse mode)

This commit is contained in:
Thomas Krijnen
2026-07-30 03:16:39 +02:00
parent e033729233
commit d472814e2a
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -2616,6 +2616,8 @@ express::Base file::add_entity(const express::Base& entity, int id) {
if constexpr (std::is_same_v<U, express::Base>) {
} else if constexpr (std::is_same_v<U, std::vector<express::Base>>) {
} else if constexpr (std::is_same_v<U, std::vector<std::vector<express::Base>>>) {
} else if constexpr (std::is_same_v<U, empty_aggregate_t>) {
} else if constexpr (std::is_same_v<U, empty_aggregate_of_aggregate_t>) {
} else {
new_entity.set_attribute_value(i, v);
}
+2
View File
@@ -108,6 +108,8 @@ void ifcopenshell::spf_header::assign(const spf_header& other) {
if constexpr (std::is_same_v<U, express::Base>) {
} else if constexpr (std::is_same_v<U, std::vector<express::Base>>) {
} else if constexpr (std::is_same_v<U, std::vector<std::vector<express::Base>>>) {
} else if constexpr (std::is_same_v<U, empty_aggregate_t>) {
} else if constexpr (std::is_same_v<U, empty_aggregate_of_aggregate_t>) {
} else {
new_entity.set_attribute_value(i, v);
}