]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/crimson/common/errorator.h
update ceph source to reef 18.2.1
[ceph.git] / ceph / src / crimson / common / errorator.h
index 705a9f05210ce271efde83cb49f35ac2d362eedd..c5d63d5b9c1d55252ba912359ff76241e95c656d 100644 (file)
@@ -599,7 +599,9 @@ private:
       static_assert((... && std::is_invocable_v<ErrorVisitorT,
                                                 AllowedErrors>),
                     "provided Error Visitor is not exhaustive");
-
+      static_assert(std::is_void_v<ValueT> ? std::is_invocable_v<ValueFuncT>
+                                          : std::is_invocable_v<ValueFuncT, ValueT>,
+                    "Value Func is not invocable with future's value");
       using value_func_result_t =
         typename std::conditional_t<std::is_void_v<ValueT>,
                                    std::invoke_result<ValueFuncT>,