From 90504582b5331960da07ae2416a263671abb1af4 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Mon, 29 Jun 2026 16:19:43 -0400 Subject: [PATCH] Allow variadic macros to accept no parameters. --- include/bitcoin/network/define.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/bitcoin/network/define.hpp b/include/bitcoin/network/define.hpp index c3e56f593..685d58994 100644 --- a/include/bitcoin/network/define.hpp +++ b/include/bitcoin/network/define.hpp @@ -35,13 +35,13 @@ namespace network { std::forward(args)...) #define BIND_THIS(method, ...) \ - std::bind(&CLASS::method, this, __VA_ARGS__) + std::bind(&CLASS::method, this __VA_OPT__(,) __VA_ARGS__) #define BIND(method, ...) \ - bind(&CLASS::method, __VA_ARGS__) + bind(&CLASS::method __VA_OPT__(,) __VA_ARGS__) #define POST(method, ...) \ - post(&CLASS::method, __VA_ARGS__) + post(&CLASS::method __VA_OPT__(,) __VA_ARGS__) #define PARALLEL(method, ...) \ - parallel(&CLASS::method, __VA_ARGS__) + parallel(&CLASS::method __VA_OPT__(,) __VA_ARGS__) } // namespace network } // namespace libbitcoin