From 9a2416555d76fefc0a8a83d8a7b181c6e020f5ce Mon Sep 17 00:00:00 2001 From: qicosmos Date: Fri, 24 May 2019 15:28:18 +0800 Subject: [PATCH] fix for gcc c++17 --- include/rpc_client.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rpc_client.hpp b/include/rpc_client.hpp index c98b95b..ef02657 100644 --- a/include/rpc_client.hpp +++ b/include/rpc_client.hpp @@ -177,7 +177,7 @@ namespace rest_rpc { #if __cplusplus > 201402L template auto call(const std::string& rpc_name, Args&& ... args) { - std::future future = async_call(rpc_name, std::forward(args)...); + std::future future = async_call(rpc_name, std::forward(args)...); auto status = future.wait_for(std::chrono::milliseconds(TIMEOUT)); if (status == std::future_status::timeout || status == std::future_status::deferred) { throw std::out_of_range("timeout or deferred");