Add template disambiguation to make g++ happy

This commit is contained in:
Thomas Krijnen
2016-09-01 12:42:12 +02:00
parent ac1a8f6d16
commit d2ce8d70b1
+1 -1
View File
@@ -147,7 +147,7 @@ ptree& format_entity_instance(IfcUtil::IfcBaseEntity* instance, ptree& tree, boo
template <typename A>
ptree& descend(A* instance, ptree& tree) {
if (instance->is(IfcSchema::Type::IfcObjectDefinition)) {
return descend(instance->as<IfcSchema::IfcObjectDefinition>(), tree);
return descend(instance->template as<IfcSchema::IfcObjectDefinition>(), tree);
} else {
return format_entity_instance(instance, tree);
}