There are currently 5 header files which uses std::result_of. As specified here https://en.cppreference.com/w/cpp/types/result_of, std::result_of got deprecated in c++ arrow headers in a project using c++20 without getting compilation errors.
To solve this, cppreference specifies how std::invoke_result can be used instead of std::result_of. Unfortunately std::invoke_result was only added in c++14 and lower support.
This is the first time I post an issue and I hope I have followed the rules.