Template, typename, others to make GCC happy

This commit is contained in:
Thomas Krijnen
2025-08-26 15:59:05 +02:00
parent 9109fcec12
commit e5fe2df552
5 changed files with 19 additions and 11 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ double IfcParse::get_SI_equivalent(typename Schema::IfcNamedUnit* named_unit) {
if (component->declaration().is(Schema::IfcSIUnit::Class())) {
si_unit = component->template as<typename Schema::IfcSIUnit>();
typename Schema::IfcValue* value = factor->ValueComponent();
scale = value->as<IfcUtil::IfcBaseClass>()->get_attribute_value(0);
scale = value->template as<IfcUtil::IfcBaseClass>()->get_attribute_value(0);
}
} else if (named_unit->declaration().is(Schema::IfcSIUnit::Class())) {
si_unit = named_unit->template as<typename Schema::IfcSIUnit>();