diff --git a/src/ifcparse/IfcHierarchyHelper.cpp b/src/ifcparse/IfcHierarchyHelper.cpp index 7c37522ebf..31838071cd 100644 --- a/src/ifcparse/IfcHierarchyHelper.cpp +++ b/src/ifcparse/IfcHierarchyHelper.cpp @@ -870,7 +870,7 @@ namespace { // 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 - void push_back_to_maybe_optional(boost::optional& t, U* u) { + void push_back_to_maybe_optional(boost::optional>& t, U* u) { if (!t) { t->emplace(new T); }