diff --git a/include/bitcoin/network/rpc/method.hpp b/include/bitcoin/network/rpc/method.hpp index 60099ba75..316f62d83 100644 --- a/include/bitcoin/network/rpc/method.hpp +++ b/include/bitcoin/network/rpc/method.hpp @@ -68,7 +68,9 @@ struct method } /// Defines a method assignable to an rpc interface. - template = true> + template = true, + bool_if, + std::string_view>...>> = true> inline constexpr method(Names&&... names) NOEXCEPT : names_{ std::forward(names)... } {