Skip to content

Commit

Permalink
Replace result_of with invoke_result
Browse files Browse the repository at this point in the history
  • Loading branch information
yixinglu committed Mar 21, 2022
1 parent e7fa1b7 commit b681a7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clients/storage/StorageClientBase-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ template <typename ClientType, typename ClientManagerType>
template <class Request, class RemoteFunc, class Response>
folly::Future<StatusOr<Response>> StorageClientBase<ClientType, ClientManagerType>::getResponse(
folly::EventBase* evb, const HostAddr& host, const Request& request, RemoteFunc&& remoteFunc) {
static_assert(folly::isFuture<
typename std::result_of<RemoteFunc(ClientType*, const Request&)>::type>::value);
static_assert(
folly::isFuture<std::invoke_result_t<RemoteFunc, ClientType*, const Request&>>::value);

stats::StatsManager::addValue(kNumRpcSentToStoraged);
if (evb == nullptr) {
Expand Down

0 comments on commit b681a7f

Please sign in to comment.