mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
specify template differently
This commit is contained in:
@@ -870,7 +870,7 @@ namespace {
|
|||||||
// In IFC4 the IfcContext.RepresentationContexts has been made optional, so we need
|
// 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.
|
// some boiler plate to push back to a list that might be optional.
|
||||||
template <typename T, typename U>
|
template <typename T, typename U>
|
||||||
void push_back_to_maybe_optional(boost::optional<typename T::ptr>& t, U* u) {
|
void push_back_to_maybe_optional(boost::optional<boost::shared_ptr<T>>& t, U* u) {
|
||||||
if (!t) {
|
if (!t) {
|
||||||
t->emplace(new T);
|
t->emplace(new T);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user