mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
reverse overload order
This commit is contained in:
@@ -862,6 +862,11 @@ typename Schema::IfcShapeRepresentation* IfcHierarchyHelper<Schema>::addEmptyRep
|
||||
}
|
||||
|
||||
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
|
||||
// some boiler plate to push back to a list that might be optional.
|
||||
template <typename T, typename U>
|
||||
@@ -871,11 +876,6 @@ namespace {
|
||||
}
|
||||
(*t)->push(u);
|
||||
}
|
||||
|
||||
template <typename T, typename U>
|
||||
void push_back_to_maybe_optional(T& t, U* u) {
|
||||
t->push(u);
|
||||
}
|
||||
}
|
||||
|
||||
template <typename Schema>
|
||||
|
||||
Reference in New Issue
Block a user