[C++] VisitType()
requires the visitor to have in implementation for base DataType
#45816
Labels
VisitType()
requires the visitor to have in implementation for base DataType
#45816
Describe the enhancement requested
I was trying to use VisitType with a closure using the constexpr
type_id
based type checkers fromtype_traits
in the following fashion:but got compile errors:
because of the fallback branch (which is also mentioned in the docstrings):
arrow/cpp/src/arrow/visit_type_inline.h
Lines 69 to 89 in bc0b858
Since the base
DataType
doesn't definetype_id
we cannot use this dispatching pattern with the constexpr type checking functions.Component(s)
C++
The text was updated successfully, but these errors were encountered: