add missing typename

This commit is contained in:
krande
2024-02-14 20:24:47 +01:00
parent 73ae2b7055
commit 288455416b
+1 -1
View File
@@ -453,7 +453,7 @@ class IFC_PARSE_API IfcHierarchyHelper : public IfcParse::IfcFile {
}
int relating_index = 4;
int related_index = 5;
if (T::Class().name() == "IfcRelContainedInSpatialStructure" || std::is_base_of<Schema::IfcRelDefines, T>::value) {
if (T::Class().name() == "IfcRelContainedInSpatialStructure" || std::is_base_of<typename Schema::IfcRelDefines, T>::value) {
// some classes have attributes reversed.
std::swap(relating_index, related_index);
}