Skip to content

Commit a1f6173

Browse files
committed
dmclock: use std::invoke_result instead of std::result_of
std::result_of is removed in c++20 so replace it with std::invoke_result Fixes: https://tracker.ceph.com/issues/71445 Signed-off-by: Mohit Agrawal <[email protected]>
1 parent 2334345 commit a1f6173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dmclock/support/src/indirect_intrusive_heap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ namespace crimson {
6060

6161
static_assert(
6262
std::is_same<bool,
63-
typename std::result_of<C(const T&,const T&)>::type>::value,
63+
typename std::invoke_result<C, const T&,const T&>::type>::value,
6464
"class C must define operator() to take two const T& and return a bool");
6565

6666
static_assert(K >= 2, "K (degree of branching) must be at least 2");

0 commit comments

Comments
 (0)