diff --git a/src/ifcparse/IfcHierarchyHelper.cpp b/src/ifcparse/IfcHierarchyHelper.cpp index 25776922a7..7c37522ebf 100644 --- a/src/ifcparse/IfcHierarchyHelper.cpp +++ b/src/ifcparse/IfcHierarchyHelper.cpp @@ -862,6 +862,11 @@ typename Schema::IfcShapeRepresentation* IfcHierarchyHelper::addEmptyRep } namespace { + template + 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 @@ -871,11 +876,6 @@ namespace { } (*t)->push(u); } - - template - void push_back_to_maybe_optional(T& t, U* u) { - t->push(u); - } } template