Skip to content

Commit

Permalink
Fix compilation for 4x2
Browse files Browse the repository at this point in the history
  • Loading branch information
aothms committed Mar 15, 2024
1 parent 3babe85 commit 0d3c73d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ifcgeom/mapping/IfcSectionedSolidHorizontal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcSectionedSolidHorizontal* in
for (auto& cs : *css) {
cross_sections.push_back(std::move(taxonomy::cast<taxonomy::face>(map(cs))));
}
#ifdef SCHEMA_HAS_IfcPointByDistanceExpression
for (auto& csp : *csps) {
auto pbde = csp->Location()->as<IfcSchema::IfcPointByDistanceExpression>(true);

Expand All @@ -73,6 +74,9 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcSectionedSolidHorizontal* in

profile_offsets.push_back(po);
}
#else
return nullptr;
#endif
if (cross_sections.size() != profile_offsets.size()) {
Logger::Error("Expected CrossSections and CrossSectionPositions to be equal length, but got " + std::to_string(cross_sections.size()) + " and " + std::to_string(profile_offsets.size()) + " respectively", inst);
return nullptr;
Expand Down

0 comments on commit 0d3c73d

Please sign in to comment.