From e57f20f5f21c9d5233a4dece244d4aada68a3816 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 14 Jan 2015 09:39:52 +0000 Subject: [PATCH] Small compilation fix --- src/ifcparse/IfcFile.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ifcparse/IfcFile.h b/src/ifcparse/IfcFile.h index dc0f01040f..5a46d041db 100644 --- a/src/ifcparse/IfcFile.h +++ b/src/ifcparse/IfcFile.h @@ -75,7 +75,8 @@ public: /// IfcWall will also return IfcWallStandardCase entities template typename T::list::ptr EntitiesByType() { - return EntitiesByType(T::Class())->as(); + IfcEntityList::ptr untyped_list = EntitiesByType(T::Class()); + return untyped_list->as(); } /// Returns all entities in the file that match the positional argument.