bkietz commented on a change in pull request #7156:
URL: https://github.com/apache/arrow/pull/7156#discussion_r426702390
##########
File path: cpp/src/arrow/python/common.h
##########
@@ -303,5 +315,102 @@ static inline PyObject* cpp_PyObject_CallMethod(PyObject*
obj, const char* metho
const_cast<char*>(argspec), args...);
}
+template <typename Self, typename Fn>
+struct BoundMethod;
+
+template <typename Self, typename R, typename... A>
+struct BoundMethod<Self, R(A...)> {
Review comment:
This allows me to straightforwardly expose
`NativeFile.get_random_access_file` to C++ as a function object
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]