Skip to content

Commit

Permalink
Work around macOS clang variant issue., again.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Jun 27, 2024
1 parent 1c70a3a commit 71bf33a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions include/bitcoin/node/define.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,15 @@ typedef system::chain::block::cptr block_t;
//// system::chain::block::cptr block;
////} xblock_t;

typedef std::conditional_t<
is_same_type<std::size_t, uint64_t>,
// std::variant types must be distinct, and xcode size_t is neither uint32_t
// nor uint64_t, so this ensures we have the distinct set of necessary types.
using event_value =
iif<is_same_type<std::size_t, uint64_t>,
std::variant<uint32_t, size_t, block_t>,
std::variant<uint64_t, size_t, block_t>> event_value;
iif<is_same_type<std::size_t, uint32_t>,
std::variant<uint64_t, size_t, block_t>,
std::variant<uint64_t, uint32_t, size_t, block_t>>>;

typedef network::desubscriber<object_key, chase, event_value> event_subscriber;
typedef event_subscriber::handler event_notifier;
typedef event_subscriber::completer event_completer;
Expand Down

0 comments on commit 71bf33a

Please sign in to comment.