]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/callable_traits/test/is_invocable.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / callable_traits / test / is_invocable.cpp
index b9fa0ea4a738533359ec82cf9c3af10d20fd934c..7ca131b1a99b731ab4935177c7a28a6024248c34 100644 (file)
@@ -28,8 +28,14 @@ struct invoke_case {
 // when available, test parity with std implementation (c++2a breaks our expectations but we still match std impl)
 #if defined(__cpp_lib_is_invocable) || __cplusplus >= 201707L
        CT_ASSERT((std::is_invocable<Callable, Args...>() == boost::callable_traits::is_invocable<Callable, Args...>()));
+#  ifndef BOOST_CLBL_TRTS_DISABLE_VARIABLE_TEMPLATES
+       CT_ASSERT((std::is_invocable_v<Callable, Args...> == boost::callable_traits::is_invocable_v<Callable, Args...>));
+#  endif
 #else
        CT_ASSERT((Expect == boost::callable_traits::is_invocable<Callable, Args...>()));
+#  ifndef BOOST_CLBL_TRTS_DISABLE_VARIABLE_TEMPLATES
+       CT_ASSERT((Expect == boost::callable_traits::is_invocable_v<Callable, Args...>));
+#  endif
 #endif
 
    }