]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
dmclock: use std::invoke_result instead of std::result_of 63516/head
authorMohit Agrawal <moagrawa@redhat.com>
Mon, 9 Jun 2025 11:50:52 +0000 (17:20 +0530)
committerMohit Agrawal <moagrawa@redhat.com>
Mon, 9 Jun 2025 11:59:46 +0000 (17:29 +0530)
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 <moagrawa@redhat.com>
src/dmclock/support/src/indirect_intrusive_heap.h

index d84a4878441abacd41e5abfeaf5739b21d1a4bb7..21beeb0a5369d71bf7885adfbc7eb93fd5d1f6f8 100644 (file)
@@ -60,7 +60,7 @@ namespace crimson {
 
     static_assert(
       std::is_same<bool,
-      typename std::result_of<C(const T&,const T&)>::type>::value,
+      typename std::invoke_result<C, const T&,const T&>::type>::value,
       "class C must define operator() to take two const T& and return a bool");
 
     static_assert(K >= 2, "K (degree of branching) must be at least 2");