Skip to content

Commit

Permalink
switch to std::function
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroshade committed Aug 30, 2023
1 parent 1ee4a4c commit 5b00630
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpp/src/arrow/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#pragma once

#include <cstdint>
#include <functional>
#include <memory>
#include <string>

Expand Down Expand Up @@ -109,7 +110,7 @@ class ARROW_EXPORT Device : public std::enable_shared_from_this<Device>,
/// 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<void(void*)>;

virtual ~Stream() = default;

Expand Down Expand Up @@ -156,7 +157,7 @@ class ARROW_EXPORT Device : public std::enable_shared_from_this<Device>,
/// \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<void(void*)>;

virtual ~SyncEvent() = default;

Expand Down

0 comments on commit 5b00630

Please sign in to comment.