]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librados: s/invoke_result_t/result_of_t/ 20379/head
authorKefu Chai <kchai@redhat.com>
Fri, 9 Feb 2018 16:06:20 +0000 (00:06 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 9 Feb 2018 16:06:24 +0000 (00:06 +0800)
to workaround buggy libc++ implementation. see
https://cplusplus.github.io/LWG/issue2807 . we should switch to
invoke_result_t once issue2807 is fixed in the latest release of
libc++.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/librados/lock.cc

index a95bca18688aaea19273ffb2dcc763ab8ba2925c..65d3fcdf09f067cb506a3daca5708e59b603879d 100644 (file)
@@ -21,7 +21,7 @@ typedef RadosTestECPP LibRadosLockECPP;
 
 
 template<class Rep, class Period, typename Func, typename... Args,
-         typename Return = std::invoke_result_t<Func, Args...>>
+         typename Return = std::result_of_t<Func&&(Args&&...)>>
 Return wait_until(const std::chrono::duration<Rep, Period>& rel_time,
                 const std::chrono::duration<Rep, Period>& step,
                 const Return& expected,