From 44de9a387ffbca565a48b36f97b092ca9a52f39c Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sat, 7 Aug 2021 09:44:21 +0200 Subject: [PATCH] reverse overload order --- src/ifcparse/IfcHierarchyHelper.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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