]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/asio/execution/set_done.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / asio / execution / set_done.hpp
index afb9e1600e33d56e4f1d856951afddca95f88860..799a358e8e3113b01edeac558507c2ebde6a148b 100644 (file)
@@ -2,7 +2,7 @@
 // execution/set_done.hpp
 // ~~~~~~~~~~~~~~~~~~~~~~
 //
-// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
+// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
 //
 // Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -68,7 +68,7 @@ struct can_set_done :
 
 #else // defined(GENERATING_DOCUMENTATION)
 
-namespace asio_execution_set_done_fn {
+namespace boost_asio_execution_set_done_fn {
 
 using boost::asio::decay;
 using boost::asio::declval;
@@ -85,7 +85,7 @@ enum overload_type
   ill_formed
 };
 
-template <typename R, typename = void>
+template <typename R, typename = void, typename = void>
 struct call_traits
 {
   BOOST_ASIO_STATIC_CONSTEXPR(overload_type, overload = ill_formed);
@@ -96,9 +96,7 @@ struct call_traits
 template <typename R>
 struct call_traits<R,
   typename enable_if<
-    (
-      set_done_member<R>::is_valid
-    )
+    set_done_member<R>::is_valid
   >::type> :
   set_done_member<R>
 {
@@ -108,11 +106,10 @@ struct call_traits<R,
 template <typename R>
 struct call_traits<R,
   typename enable_if<
-    (
-      !set_done_member<R>::is_valid
-      &&
-      set_done_free<R>::is_valid
-    )
+    !set_done_member<R>::is_valid
+  >::type,
+  typename enable_if<
+    set_done_free<R>::is_valid
   >::type> :
   set_done_free<R>
 {
@@ -205,22 +202,22 @@ struct static_instance
 template <typename T>
 const T static_instance<T>::instance = {};
 
-} // namespace asio_execution_set_done_fn
+} // namespace boost_asio_execution_set_done_fn
 namespace boost {
 namespace asio {
 namespace execution {
 namespace {
 
-static BOOST_ASIO_CONSTEXPR const asio_execution_set_done_fn::impl&
-  set_done = asio_execution_set_done_fn::static_instance<>::instance;
+static BOOST_ASIO_CONSTEXPR const boost_asio_execution_set_done_fn::impl&
+  set_done = boost_asio_execution_set_done_fn::static_instance<>::instance;
 
 } // namespace
 
 template <typename R>
 struct can_set_done :
   integral_constant<bool,
-    asio_execution_set_done_fn::call_traits<R>::overload !=
-      asio_execution_set_done_fn::ill_formed>
+    boost_asio_execution_set_done_fn::call_traits<R>::overload !=
+      boost_asio_execution_set_done_fn::ill_formed>
 {
 };
 
@@ -234,7 +231,7 @@ constexpr bool can_set_done_v = can_set_done<R>::value;
 template <typename R>
 struct is_nothrow_set_done :
   integral_constant<bool,
-    asio_execution_set_done_fn::call_traits<R>::is_noexcept>
+    boost_asio_execution_set_done_fn::call_traits<R>::is_noexcept>
 {
 };