From 40927e40ff71f1f25312408c520fae87161e9f83 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 16 Jun 2022 03:33:59 -0400 Subject: [PATCH] v/rpc: use std::constructible_from when appropriate for better readability Signed-off-by: Kefu Chai --- src/v/rpc/transport.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/v/rpc/transport.h b/src/v/rpc/transport.h index ba0a2900ceba..7a5304ee19d9 100644 --- a/src/v/rpc/transport.h +++ b/src/v/rpc/transport.h @@ -32,6 +32,7 @@ #include #include +#include #include #include #include @@ -210,9 +211,7 @@ transport::send_typed_versioned( } template -concept RpcClientProtocol = requires(rpc::transport& t) { - { Protocol(t) } -> std::same_as; -}; +concept RpcClientProtocol = std::constructible_from; template requires(RpcClientProtocol&&...) class client : public Protocol... {