Skip to content

Commit 697c7bc

Browse files
authored
[core] use invoke_result_t in cpp worker example (#57885)
`result_of_t` is deprecated Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
1 parent f8e172c commit 697c7bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/src/ray/test/examples/simple_kv_store.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ class Client {
217217
}
218218

219219
template <typename F>
220-
std::result_of_t<F()> AlwaysRetry(const F &f) {
221-
using R = std::result_of_t<F()>;
220+
std::invoke_result_t<F> AlwaysRetry(const F &f) {
221+
using R = std::invoke_result_t<F>;
222222
R r{};
223223
while (true) {
224224
try {

0 commit comments

Comments
 (0)