mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 14:33:28 +00:00
reverse overload order
This commit is contained in:
@@ -862,6 +862,11 @@ typename Schema::IfcShapeRepresentation* IfcHierarchyHelper<Schema>::addEmptyRep
|
|||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
template <typename T, typename U>
|
||||||
|
void push_back_to_maybe_optional(T& t, U* u) {
|
||||||
|
t->push(u);
|
||||||
|
}
|
||||||
|
|
||||||
// In IFC4 the IfcContext.RepresentationContexts has been made optional, so we need
|
// In IFC4 the IfcContext.RepresentationContexts has been made optional, so we need
|
||||||
// some boiler plate to push back to a list that might be optional.
|
// some boiler plate to push back to a list that might be optional.
|
||||||
template <typename T, typename U>
|
template <typename T, typename U>
|
||||||
@@ -871,11 +876,6 @@ namespace {
|
|||||||
}
|
}
|
||||||
(*t)->push(u);
|
(*t)->push(u);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, typename U>
|
|
||||||
void push_back_to_maybe_optional(T& t, U* u) {
|
|
||||||
t->push(u);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Schema>
|
template <typename Schema>
|
||||||
|
|||||||
Reference in New Issue
Block a user