reverse overload order

This commit is contained in:
Thomas Krijnen
2021-08-07 09:44:21 +02:00
parent 0d49c89943
commit 44de9a387f
+5 -5
View File
@@ -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>