Small compilation fix

This commit is contained in:
Thomas Krijnen
2015-01-14 09:39:52 +00:00
parent 511e83c2c6
commit e57f20f5f2
+2 -1
View File
@@ -75,7 +75,8 @@ public:
/// IfcWall will also return IfcWallStandardCase entities
template <class T>
typename T::list::ptr EntitiesByType() {
return EntitiesByType(T::Class())->as<T>();
IfcEntityList::ptr untyped_list = EntitiesByType(T::Class());
return untyped_list->as<T>();
}
/// Returns all entities in the file that match the positional argument.