From 5b006309d882c15b44777b15d799997f8d9655d6 Mon Sep 17 00:00:00 2001 From: Matt Topol Date: Wed, 30 Aug 2023 13:36:07 -0400 Subject: [PATCH] switch to std::function --- cpp/src/arrow/device.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;