diff --git a/src/ifcgeom/AbstractKernel.h b/src/ifcgeom/AbstractKernel.h index d06fe6bf4a..630ade01ae 100644 --- a/src/ifcgeom/AbstractKernel.h +++ b/src/ifcgeom/AbstractKernel.h @@ -141,7 +141,7 @@ namespace { static bool dispatch(const ifcopenshell::geometry::taxonomy::ptr item, T& visitor) { constexpr auto KindIndex = TupleTypeIndex, ifcopenshell::geometry::taxonomy::impl::KindsTuple>::value; if (item->kind() == KindIndex) { - auto concrete_item = ifcopenshell::geometry::taxonomy::template cast>(item); + auto concrete_item = std::static_pointer_cast>(item); visitor(concrete_item); return true; } else {