mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
Add template disambiguation to make g++ happy
This commit is contained in:
@@ -147,7 +147,7 @@ ptree& format_entity_instance(IfcUtil::IfcBaseEntity* instance, ptree& tree, boo
|
|||||||
template <typename A>
|
template <typename A>
|
||||||
ptree& descend(A* instance, ptree& tree) {
|
ptree& descend(A* instance, ptree& tree) {
|
||||||
if (instance->is(IfcSchema::Type::IfcObjectDefinition)) {
|
if (instance->is(IfcSchema::Type::IfcObjectDefinition)) {
|
||||||
return descend(instance->as<IfcSchema::IfcObjectDefinition>(), tree);
|
return descend(instance->template as<IfcSchema::IfcObjectDefinition>(), tree);
|
||||||
} else {
|
} else {
|
||||||
return format_entity_instance(instance, tree);
|
return format_entity_instance(instance, tree);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user