Skip to content

Commit

Permalink
update asio version 1.30.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sniper00 committed Apr 17, 2024
1 parent 4319bdf commit 1fdad89
Show file tree
Hide file tree
Showing 676 changed files with 14,258 additions and 31,930 deletions.
25 changes: 6 additions & 19 deletions third/asio.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// asio.hpp
// ~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
// Copyright (c) 2003-2024 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)
Expand All @@ -21,8 +21,9 @@
#include "asio/append.hpp"
#include "asio/as_tuple.hpp"
#include "asio/associated_allocator.hpp"
#include "asio/associated_executor.hpp"
#include "asio/associated_cancellation_slot.hpp"
#include "asio/associated_executor.hpp"
#include "asio/associated_immediate_executor.hpp"
#include "asio/associator.hpp"
#include "asio/async_result.hpp"
#include "asio/awaitable.hpp"
Expand All @@ -48,6 +49,7 @@
#include "asio/bind_allocator.hpp"
#include "asio/bind_cancellation_slot.hpp"
#include "asio/bind_executor.hpp"
#include "asio/bind_immediate_executor.hpp"
#include "asio/buffer.hpp"
#include "asio/buffer_registration.hpp"
#include "asio/buffered_read_stream_fwd.hpp"
Expand Down Expand Up @@ -79,30 +81,15 @@
#include "asio/execution/any_executor.hpp"
#include "asio/execution/blocking.hpp"
#include "asio/execution/blocking_adaptation.hpp"
#include "asio/execution/bulk_execute.hpp"
#include "asio/execution/bulk_guarantee.hpp"
#include "asio/execution/connect.hpp"
#include "asio/execution/context.hpp"
#include "asio/execution/context_as.hpp"
#include "asio/execution/execute.hpp"
#include "asio/execution/executor.hpp"
#include "asio/execution/invocable_archetype.hpp"
#include "asio/execution/mapping.hpp"
#include "asio/execution/occupancy.hpp"
#include "asio/execution/operation_state.hpp"
#include "asio/execution/outstanding_work.hpp"
#include "asio/execution/prefer_only.hpp"
#include "asio/execution/receiver.hpp"
#include "asio/execution/receiver_invocation_error.hpp"
#include "asio/execution/relationship.hpp"
#include "asio/execution/schedule.hpp"
#include "asio/execution/scheduler.hpp"
#include "asio/execution/sender.hpp"
#include "asio/execution/set_done.hpp"
#include "asio/execution/set_error.hpp"
#include "asio/execution/set_value.hpp"
#include "asio/execution/start.hpp"
#include "asio/execution_context.hpp"
#include "asio/executor.hpp"
#include "asio/executor_work_guard.hpp"
#include "asio/file_base.hpp"
Expand All @@ -111,9 +98,7 @@
#include "asio/generic/raw_protocol.hpp"
#include "asio/generic/seq_packet_protocol.hpp"
#include "asio/generic/stream_protocol.hpp"
#include "asio/handler_alloc_hook.hpp"
#include "asio/handler_continuation_hook.hpp"
#include "asio/handler_invoke_hook.hpp"
#include "asio/high_resolution_timer.hpp"
#include "asio/io_context.hpp"
#include "asio/io_context_strand.hpp"
Expand Down Expand Up @@ -151,6 +136,7 @@
#include "asio/local/basic_endpoint.hpp"
#include "asio/local/connect_pair.hpp"
#include "asio/local/datagram_protocol.hpp"
#include "asio/local/seq_packet_protocol.hpp"
#include "asio/local/stream_protocol.hpp"
#include "asio/multiple_exceptions.hpp"
#include "asio/packaged_task.hpp"
Expand All @@ -177,6 +163,7 @@
#include "asio/serial_port.hpp"
#include "asio/serial_port_base.hpp"
#include "asio/signal_set.hpp"
#include "asio/signal_set_base.hpp"
#include "asio/socket_base.hpp"
#include "asio/static_thread_pool.hpp"
#include "asio/steady_timer.hpp"
Expand Down
58 changes: 26 additions & 32 deletions third/asio/any_completion_executor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// any_completion_executor.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
// Copyright (c) 2003-2024 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)
Expand Down Expand Up @@ -75,20 +75,18 @@ class any_completion_executor :
#endif // !defined(GENERATING_DOCUMENTATION)

/// Default constructor.
ASIO_DECL any_completion_executor() ASIO_NOEXCEPT;
ASIO_DECL any_completion_executor() noexcept;

/// Construct in an empty state. Equivalent effects to default constructor.
ASIO_DECL any_completion_executor(nullptr_t) ASIO_NOEXCEPT;
ASIO_DECL any_completion_executor(nullptr_t) noexcept;

/// Copy constructor.
ASIO_DECL any_completion_executor(
const any_completion_executor& e) ASIO_NOEXCEPT;
const any_completion_executor& e) noexcept;

#if defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
/// Move constructor.
ASIO_DECL any_completion_executor(
any_completion_executor&& e) ASIO_NOEXCEPT;
#endif // defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
any_completion_executor&& e) noexcept;

/// Construct to point to the same target as another any_executor.
#if defined(GENERATING_DOCUMENTATION)
Expand All @@ -98,7 +96,7 @@ class any_completion_executor :
#else // defined(GENERATING_DOCUMENTATION)
template <typename OtherAnyExecutor>
any_completion_executor(OtherAnyExecutor e,
typename constraint<
constraint_t<
conditional<
!is_same<OtherAnyExecutor, any_completion_executor>::value
&& is_base_of<execution::detail::any_executor_base,
Expand All @@ -108,8 +106,8 @@ class any_completion_executor :
is_valid_target<OtherAnyExecutor>,
false_type
>::type::value
>::type = 0)
: base_type(ASIO_MOVE_CAST(OtherAnyExecutor)(e))
> = 0)
: base_type(static_cast<OtherAnyExecutor&&>(e))
{
}
#endif // defined(GENERATING_DOCUMENTATION)
Expand All @@ -122,7 +120,7 @@ class any_completion_executor :
#else // defined(GENERATING_DOCUMENTATION)
template <typename OtherAnyExecutor>
any_completion_executor(std::nothrow_t, OtherAnyExecutor e,
typename constraint<
constraint_t<
conditional<
!is_same<OtherAnyExecutor, any_completion_executor>::value
&& is_base_of<execution::detail::any_executor_base,
Expand All @@ -132,21 +130,19 @@ class any_completion_executor :
is_valid_target<OtherAnyExecutor>,
false_type
>::type::value
>::type = 0) ASIO_NOEXCEPT
: base_type(std::nothrow, ASIO_MOVE_CAST(OtherAnyExecutor)(e))
> = 0) noexcept
: base_type(std::nothrow, static_cast<OtherAnyExecutor&&>(e))
{
}
#endif // defined(GENERATING_DOCUMENTATION)

/// Construct to point to the same target as another any_executor.
ASIO_DECL any_completion_executor(std::nothrow_t,
const any_completion_executor& e) ASIO_NOEXCEPT;
const any_completion_executor& e) noexcept;

#if defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
/// Construct to point to the same target as another any_executor.
ASIO_DECL any_completion_executor(std::nothrow_t,
any_completion_executor&& e) ASIO_NOEXCEPT;
#endif // defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
any_completion_executor&& e) noexcept;

/// Construct a polymorphic wrapper for the specified executor.
#if defined(GENERATING_DOCUMENTATION)
Expand All @@ -155,7 +151,7 @@ class any_completion_executor :
#else // defined(GENERATING_DOCUMENTATION)
template <ASIO_EXECUTION_EXECUTOR Executor>
any_completion_executor(Executor e,
typename constraint<
constraint_t<
conditional<
!is_same<Executor, any_completion_executor>::value
&& !is_base_of<execution::detail::any_executor_base,
Expand All @@ -164,8 +160,8 @@ class any_completion_executor :
Executor, supportable_properties_type>,
false_type
>::type::value
>::type = 0)
: base_type(ASIO_MOVE_CAST(Executor)(e))
> = 0)
: base_type(static_cast<Executor&&>(e))
{
}
#endif // defined(GENERATING_DOCUMENTATION)
Expand All @@ -177,7 +173,7 @@ class any_completion_executor :
#else // defined(GENERATING_DOCUMENTATION)
template <ASIO_EXECUTION_EXECUTOR Executor>
any_completion_executor(std::nothrow_t, Executor e,
typename constraint<
constraint_t<
conditional<
!is_same<Executor, any_completion_executor>::value
&& !is_base_of<execution::detail::any_executor_base,
Expand All @@ -186,21 +182,19 @@ class any_completion_executor :
Executor, supportable_properties_type>,
false_type
>::type::value
>::type = 0) ASIO_NOEXCEPT
: base_type(std::nothrow, ASIO_MOVE_CAST(Executor)(e))
> = 0) noexcept
: base_type(std::nothrow, static_cast<Executor&&>(e))
{
}
#endif // defined(GENERATING_DOCUMENTATION)

/// Assignment operator.
ASIO_DECL any_completion_executor& operator=(
const any_completion_executor& e) ASIO_NOEXCEPT;
const any_completion_executor& e) noexcept;

#if defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
/// Move assignment operator.
ASIO_DECL any_completion_executor& operator=(
any_completion_executor&& e) ASIO_NOEXCEPT;
#endif // defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
any_completion_executor&& e) noexcept;

/// Assignment operator that sets the polymorphic wrapper to the empty state.
ASIO_DECL any_completion_executor& operator=(nullptr_t);
Expand All @@ -209,7 +203,7 @@ class any_completion_executor :
ASIO_DECL ~any_completion_executor();

/// Swap targets with another polymorphic wrapper.
ASIO_DECL void swap(any_completion_executor& other) ASIO_NOEXCEPT;
ASIO_DECL void swap(any_completion_executor& other) noexcept;

/// Obtain a polymorphic wrapper with the specified property.
/**
Expand All @@ -222,9 +216,9 @@ class any_completion_executor :
*/
template <typename Property>
any_completion_executor require(const Property& p,
typename constraint<
constraint_t<
traits::require_member<const base_type&, const Property&>::is_valid
>::type = 0) const
> = 0) const
{
return static_cast<const base_type&>(*this).require(p);
}
Expand All @@ -240,9 +234,9 @@ class any_completion_executor :
*/
template <typename Property>
any_completion_executor prefer(const Property& p,
typename constraint<
constraint_t<
traits::prefer_member<const base_type&, const Property&>::is_valid
>::type = 0) const
> = 0) const
{
return static_cast<const base_type&>(*this).prefer(p);
}
Expand Down
Loading

0 comments on commit 1fdad89

Please sign in to comment.