HuaHuaY commented on code in PR #50714:
URL: https://github.com/apache/arrow/pull/50714#discussion_r3676129704
##########
cpp/src/arrow/compute/kernels/codegen_internal.h:
##########
@@ -479,9 +480,9 @@ struct UnboxScalar<Decimal256Type> {
// values, such as Decimal128 rather than std::string_view.
template <typename T, typename VisitFunc, typename NullFunc>
-static typename ::arrow::internal::call_traits::enable_if_return<VisitFunc,
void>::type
-VisitArrayValuesInline(const ArraySpan& arr, VisitFunc&& valid_func,
- NullFunc&& null_func) {
+ requires std::is_void_v<std::invoke_result_t<VisitFunc, typename
GetViewType<T>::T>>
Review Comment:
I think `is_invocable_r` is equivalent here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]