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");