diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2020-03-23 20:16:39 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-24 17:16:26 +0000 |
commit | 60d5baecdfe0d9e7db37bfc1194dbc8eef4cf50d (patch) | |
tree | 8b0190b7f2222a94d40ed8172d11b10e6038f44c /src/mongo/executor | |
parent | 40112eca43bbb3b84aa738bacec73c3a9e32e5b9 (diff) | |
download | mongo-60d5baecdfe0d9e7db37bfc1194dbc8eef4cf50d.tar.gz |
SERVER-47064 Use std::invoke_result instead of std::result_of
Diffstat (limited to 'src/mongo/executor')
-rw-r--r-- | src/mongo/executor/network_test_env.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/executor/network_test_env.h b/src/mongo/executor/network_test_env.h index 25025e39c16..df8d612a5fe 100644 --- a/src/mongo/executor/network_test_env.h +++ b/src/mongo/executor/network_test_env.h @@ -151,9 +151,9 @@ public: * Must be defined in the header because of its use of templates. */ template <typename Lambda> - FutureHandle<typename std::result_of<Lambda()>::type> launchAsync(Lambda&& func) const { + FutureHandle<typename std::invoke_result<Lambda>::type> launchAsync(Lambda&& func) const { auto future = async(stdx::launch::async, std::forward<Lambda>(func)); - return NetworkTestEnv::FutureHandle<typename std::result_of<Lambda()>::type>{ + return NetworkTestEnv::FutureHandle<typename std::invoke_result<Lambda>::type>{ std::move(future), _executor, _mockNetwork}; } |