diff --git a/include/rest_rpc/rpc_client.hpp b/include/rest_rpc/rpc_client.hpp index b34deb3..429cb0b 100644 --- a/include/rest_rpc/rpc_client.hpp +++ b/include/rest_rpc/rpc_client.hpp @@ -218,7 +218,7 @@ public: if constexpr (std::is_void_v) { future.get().as(); } else { - return future.get().as(); + return future.get().template as(); } } @@ -260,7 +260,7 @@ public: throw std::out_of_range("timeout or deferred"); } - auto t = future_result.get().as(); + auto t = future_result.get().template as(); { std::unique_lock lock(cb_mtx_); future_map_.erase(future_result.id);