Skip to content

Conversation

@HyukjinKwon
Copy link
Member

@HyukjinKwon HyukjinKwon commented Jan 20, 2026

Rationale for this change

The call_traits utility only supported lambdas and functors, but not function pointers. This prevented simplifying code like fut.Then([](T x) { return Func(x); }) to fut.Then(Func), as described in GH-18652.

What changes are included in this PR?

  • Added function pointer support to arrow::internal::call_traits in cpp/src/arrow/util/functional.h
  • Applied the simplifications.

Are these changes tested?

Yes, I ran all existing tests locally.

Are there any user-facing changes?

No.

@github-actions
Copy link

⚠️ GitHub issue #18652 has been automatically assigned in GitHub to PR creator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant