AbstractKernel::dispatch_curve_creation - use static cast

Similar to 93c4749
This commit is contained in:
Andrej730
2024-09-27 17:05:55 +05:00
parent 82fd49e4c4
commit f7bf440848
+1 -1
View File
@@ -141,7 +141,7 @@ namespace {
static bool dispatch(const ifcopenshell::geometry::taxonomy::ptr item, T& visitor) {
constexpr auto KindIndex = TupleTypeIndex<std::tuple_element_t<N, ifcopenshell::geometry::taxonomy::impl::CurvesTuple>, ifcopenshell::geometry::taxonomy::impl::KindsTuple>::value;
if (item->kind() == KindIndex) {
auto concrete_item = ifcopenshell::geometry::taxonomy::template cast<ifcopenshell::geometry::taxonomy::curves::type<N>>(item);
auto concrete_item = std::static_pointer_cast<ifcopenshell::geometry::taxonomy::curves::type<N>>(item);
visitor(concrete_item);
return true;
} else {