// 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)
#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;
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);
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>
{
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>
{
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>
{
};
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>
{
};