diff --git a/cpp/src/arrow/device.h b/cpp/src/arrow/device.h index a217542721a6f..066ca7e32a4fe 100644 --- a/cpp/src/arrow/device.h +++ b/cpp/src/arrow/device.h @@ -18,6 +18,7 @@ #pragma once #include +#include #include #include @@ -109,7 +110,7 @@ class ARROW_EXPORT Device : public std::enable_shared_from_this, /// should be trivially constructible from it's device-specific counterparts. class ARROW_EXPORT Stream { public: - using release_fn_t = void (*)(void*); + using release_fn_t = std::function; virtual ~Stream() = default; @@ -156,7 +157,7 @@ class ARROW_EXPORT Device : public std::enable_shared_from_this, /// \brief EXPERIMENTAL: An object that provides event/stream sync primitives class ARROW_EXPORT SyncEvent { public: - using release_fn_t = void (*)(void*); + using release_fn_t = std::function; virtual ~SyncEvent() = default;