]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/asio/post.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / asio / post.hpp
index 8f08a65a87f7ac3152c307c0a3637869a84c5a77..c409492476ad4ffdebae2b12ba88ed34937653a3 100644 (file)
@@ -19,6 +19,7 @@
 #include <boost/asio/async_result.hpp>
 #include <boost/asio/detail/type_traits.hpp>
 #include <boost/asio/execution_context.hpp>
+#include <boost/asio/execution/executor.hpp>
 #include <boost/asio/is_executor.hpp>
 
 #include <boost/asio/detail/push_options.hpp>
@@ -97,7 +98,9 @@ BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) post(
     const Executor& ex,
     BOOST_ASIO_MOVE_ARG(CompletionToken) token
       BOOST_ASIO_DEFAULT_COMPLETION_TOKEN(Executor),
-    typename enable_if<is_executor<Executor>::value>::type* = 0);
+    typename enable_if<
+      execution::is_executor<Executor>::value || is_executor<Executor>::value
+    >::type* = 0);
 
 /// Submits a completion token or function object for execution.
 /**