arrow icon indicating copy to clipboard operation
arrow copied to clipboard

[C++] Simplify or remove `arrow/util/functional.h`

Open pitrou opened this issue 5 months ago • 6 comments

Describe the enhancement requested

arrow/util/functional.h is a set of ad-hoc metaprogramming utilities that were necessary when Arrow supported C++11. Now that we require C++20, most of that functionality can probably be replaced by stdlib utilites such as std::is_invocable and std::invoke_result.

This issue requires some C++ proficiency but hopefully little knowledge of the Arrow C++ codebase.

Component(s)

C++

pitrou avatar Jun 25 '26 07:06 pitrou

cc @tadeja @taepper FYI

pitrou avatar Jun 25 '26 07:06 pitrou

Is someone working on this issue? I have refactored part of this file in iceberg-cpp repo https://github.com/apache/iceberg-cpp/blob/main/src/iceberg/util/functional.h. If there is no one working on this, I'd like to fix this issue.

HuaHuaY avatar Jun 29 '26 09:06 HuaHuaY

@HuaHuaY I'm not working on this issue yet. @taepper have you perhaps started this? (I see you're on #50248 right now:)

tadeja avatar Jun 29 '26 10:06 tadeja

I have not started working on this :)

taepper avatar Jul 01 '26 20:07 taepper

take

taepper avatar Jul 29 '26 14:07 taepper

Issue resolved by pull request 51328 https://github.com/apache/arrow/pull/51328

pitrou avatar Sep 16 '26 17:09 pitrou