From 47b9ed4482f71fcce74d6e3f4bc8eb26874ff761 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 6 Feb 2015 12:58:59 +0000 Subject: [PATCH] Add a cast in templated list conversion --- src/ifcparse/IfcUtil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcparse/IfcUtil.h b/src/ifcparse/IfcUtil.h index 8144f2b2f3..437e20fdbd 100644 --- a/src/ifcparse/IfcUtil.h +++ b/src/ifcparse/IfcUtil.h @@ -130,7 +130,7 @@ public: typename U::list::ptr as() { typename U::list::ptr r(new typename U::list); const bool all = U::Class() == IfcSchema::Type::ALL; - for ( it i = begin(); i != end(); ++ i ) if (all || (*i)->is(U::Class())) r->push(*i); + for ( it i = begin(); i != end(); ++ i ) if (all || (*i)->is(U::Class())) r->push((U*)*i); return r; } };