passenger 6.0.20 → 6.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +47 -1
- data/CONTRIBUTORS +2 -0
- data/README.md +2 -2
- data/bin/passenger-install-nginx-module +4 -4
- data/build/support/cxx_dependency_map.rb +155 -54
- data/dev/copy_boost_headers +21 -7
- data/dev/nginx_version_sha256 +72 -0
- data/src/agent/AgentMain.cpp +2 -8
- data/src/agent/Core/AdminPanelConnector.h +2 -3
- data/src/agent/Core/ApiServer.h +1 -1
- data/src/agent/Core/ApplicationPool/Pool/StateInspection.cpp +8 -1
- data/src/agent/Core/Config.h +6 -3
- data/src/agent/Core/Controller/AppResponse.h +0 -1
- data/src/agent/Core/Controller/Config.h +2 -2
- data/src/agent/Core/Controller/SendRequest.cpp +2 -2
- data/src/agent/Core/CoreMain.cpp +1 -0
- data/src/agent/Core/ResponseCache.h +3 -2
- data/src/agent/Core/SecurityUpdateChecker.h +1 -1
- data/src/agent/Core/SpawningKit/Handshake/Perform.h +4 -4
- data/src/agent/Core/SpawningKit/UserSwitchingRules.h +2 -2
- data/src/agent/ExecHelper/ExecHelperMain.cpp +10 -12
- data/src/agent/FileReadHelper/FileReadHelperMain.cpp +7 -10
- data/src/agent/MainFunctions.h +38 -0
- data/src/agent/Shared/ApiServerUtils.h +3 -2
- data/src/agent/Shared/Fundamentals/Initialization.cpp +1 -1
- data/src/agent/SpawnEnvSetupper/SpawnEnvSetupperMain.cpp +2 -3
- data/src/agent/SystemMetrics/SystemMetricsMain.cpp +1 -0
- data/src/agent/TempDirToucher/TempDirToucherMain.cpp +6 -4
- data/src/agent/Watchdog/ApiServer.h +1 -1
- data/src/agent/Watchdog/Config.h +1 -1
- data/src/agent/Watchdog/WatchdogMain.cpp +5 -12
- data/src/apache2_module/Hooks.cpp +26 -1
- data/src/cxx_supportlib/ConfigKit/Common.h +1 -1
- data/src/cxx_supportlib/Constants.h +1 -1
- data/src/cxx_supportlib/DataStructures/StringKeyTable.h +1 -1
- data/src/cxx_supportlib/FileTools/PathManip.cpp +10 -1
- data/src/cxx_supportlib/IOTools/IOUtils.cpp +2 -6
- data/src/cxx_supportlib/Integrations/LibevJsonUtils.h +3 -3
- data/src/cxx_supportlib/JsonTools/CBindings.cpp +0 -2
- data/src/cxx_supportlib/JsonTools/JsonUtils.h +4 -4
- data/src/cxx_supportlib/LoggingKit/Context.h +16 -21
- data/src/cxx_supportlib/LoggingKit/Forward.h +0 -2
- data/src/cxx_supportlib/LoggingKit/Implementation.cpp +36 -72
- data/src/cxx_supportlib/MemoryKit/mbuf.cpp +12 -4
- data/src/cxx_supportlib/MemoryKit/mbuf.h +1 -1
- data/src/cxx_supportlib/ProcessManagement/Utils.cpp +1 -1
- data/src/cxx_supportlib/ResourceLocator.h +1 -1
- data/src/cxx_supportlib/SecurityKit/Crypto.cpp +3 -94
- data/src/cxx_supportlib/SecurityKit/Crypto.h +0 -8
- data/src/cxx_supportlib/ServerKit/Context.h +6 -0
- data/src/cxx_supportlib/ServerKit/Errors.h +3 -2
- data/src/cxx_supportlib/ServerKit/HttpHeaderParser.h +96 -64
- data/src/cxx_supportlib/ServerKit/HttpHeaderParserState.h +4 -1
- data/src/cxx_supportlib/ServerKit/HttpRequest.h +2 -2
- data/src/cxx_supportlib/ServerKit/HttpServer.h +3 -2
- data/src/cxx_supportlib/ServerKit/llerrors.h +84 -0
- data/src/cxx_supportlib/ServerKit/llhttp.c +10168 -0
- data/src/cxx_supportlib/ServerKit/llhttp.h +903 -0
- data/src/cxx_supportlib/ServerKit/llhttp_api.c +510 -0
- data/src/cxx_supportlib/ServerKit/llhttp_http.c +170 -0
- data/src/cxx_supportlib/ServerKit/llversion.h +12 -0
- data/src/cxx_supportlib/ServerKit/url_parser.c +574 -0
- data/src/cxx_supportlib/ServerKit/url_parser.h +74 -0
- data/src/cxx_supportlib/StaticString.h +3 -1
- data/src/cxx_supportlib/StrIntTools/DateParsing.h +1 -1
- data/src/cxx_supportlib/StrIntTools/StrIntUtils.cpp +12 -3
- data/src/cxx_supportlib/StrIntTools/StrIntUtils.h +5 -0
- data/src/cxx_supportlib/SystemTools/SystemMetricsCollector.h +2 -2
- data/src/cxx_supportlib/SystemTools/UserDatabase.cpp +14 -14
- data/src/cxx_supportlib/SystemTools/UserDatabase.h +6 -10
- data/src/cxx_supportlib/Utils/AnsiColorConstants.h +11 -9
- data/src/cxx_supportlib/Utils.cpp +1 -1
- data/src/cxx_supportlib/oxt/implementation.cpp +1 -2
- data/src/cxx_supportlib/oxt/system_calls.cpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_executor.hpp +26 -32
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_handler.hpp +61 -62
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_io_executor.hpp +34 -42
- data/src/cxx_supportlib/vendor-modified/boost/asio/append.hpp +10 -23
- data/src/cxx_supportlib/vendor-modified/boost/asio/as_tuple.hpp +21 -34
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_allocator.hpp +26 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_cancellation_slot.hpp +26 -43
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_executor.hpp +28 -46
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_immediate_executor.hpp +42 -59
- data/src/cxx_supportlib/vendor-modified/boost/asio/associator.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/async_result.hpp +154 -883
- data/src/cxx_supportlib/vendor-modified/boost/asio/awaitable.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_datagram_socket.hpp +64 -98
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_deadline_timer.hpp +17 -22
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_file.hpp +18 -23
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_io_object.hpp +4 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_random_access_file.hpp +30 -42
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_raw_socket.hpp +65 -96
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_readable_pipe.hpp +20 -29
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_seq_packet_socket.hpp +36 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_serial_port.hpp +31 -44
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_signal_set.hpp +19 -22
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket.hpp +34 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_acceptor.hpp +106 -153
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_iostream.hpp +6 -82
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_streambuf.hpp +6 -51
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_file.hpp +30 -40
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_socket.hpp +50 -76
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf.hpp +13 -15
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf_fwd.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_waitable_timer.hpp +23 -32
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_writable_pipe.hpp +20 -29
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_allocator.hpp +75 -294
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_cancellation_slot.hpp +75 -283
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_executor.hpp +89 -288
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_immediate_executor.hpp +73 -275
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffer.hpp +170 -328
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffer_registration.hpp +29 -39
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream.hpp +26 -39
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream_fwd.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream.hpp +32 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream_fwd.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream.hpp +26 -39
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream_fwd.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffers_iterator.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_signal.hpp +25 -85
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_state.hpp +16 -16
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_type.hpp +8 -25
- data/src/cxx_supportlib/vendor-modified/boost/asio/co_spawn.hpp +17 -17
- data/src/cxx_supportlib/vendor-modified/boost/asio/completion_condition.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/compose.hpp +53 -272
- data/src/cxx_supportlib/vendor-modified/boost/asio/connect.hpp +52 -79
- data/src/cxx_supportlib/vendor-modified/boost/asio/connect_pipe.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/consign.hpp +11 -24
- data/src/cxx_supportlib/vendor-modified/boost/asio/coroutine.hpp +2 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/deadline_timer.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/defer.hpp +22 -26
- data/src/cxx_supportlib/vendor-modified/boost/asio/deferred.hpp +188 -275
- data/src/cxx_supportlib/vendor-modified/boost/asio/detached.hpp +12 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array.hpp +2 -10
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array_fwd.hpp +2 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/assert.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/atomic_count.hpp +5 -13
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_cancellation_state.hpp +21 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_completion_cond.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bind_handler.hpp +129 -563
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/blocking_executor_op.hpp +2 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_resize_guard.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_sequence_adapter.hpp +3 -7
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffered_stream_storage.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/call_stack.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono.hpp +2 -23
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono_time_traits.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_handler.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/composed_work.hpp +21 -97
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/concurrency_hint.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_event.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_mutex.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/config.hpp +91 -975
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/consuming_buffers.hpp +3 -11
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstddef.hpp +1 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstdint.hpp +2 -24
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/date_time_fwd.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/deadline_timer_service.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dependent_type.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_ops.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_read_op.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_write_op.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dev_poll_reactor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/epoll_reactor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/event.hpp +3 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/eventfd_select_interrupter.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/exception.hpp +2 -13
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_function.hpp +8 -60
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_op.hpp +5 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fd_set_adapter.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fenced_block.hpp +3 -43
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/functional.hpp +1 -12
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/future.hpp +9 -10
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/global.hpp +3 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_alloc_helpers.hpp +41 -104
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_cont_helpers.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_tracking.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_type_requirements.hpp +9 -15
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_work.hpp +73 -127
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/hash_map.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/buffer_sequence_adapter.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/descriptor_ops.ipp +32 -11
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/eventfd_select_interrupter.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/handler_tracking.ipp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_descriptor_service.ipp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_file_service.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_service.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_service.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_socket_service_base.ipp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/null_event.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/pipe_select_interrupter.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_event.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_mutex.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_serial_port_service.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_thread.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_tss_ptr.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_descriptor_service.ipp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_socket_service_base.ipp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/resolver_service_base.ipp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/scheduler.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.hpp +2 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/signal_set_service.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_ops.ipp +63 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_select_interrupter.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.hpp +47 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.hpp +2 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/thread_context.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/throw_error.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_ptime.ipp +12 -12
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_set.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiate_defer.hpp +56 -101
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiate_dispatch.hpp +56 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiate_post.hpp +56 -101
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_control.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_object_impl.hpp +6 -10
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_read_at_op.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_read_op.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_service.hpp +9 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_write_at_op.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_write_op.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_file_service.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_null_buffers_op.hpp +3 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_operation.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_service.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_accept_op.hpp +7 -12
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_connect_op.hpp +3 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recv_op.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recvfrom_op.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recvmsg_op.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_send_op.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_sendto_op.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_service.hpp +11 -13
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_service_base.hpp +9 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_wait_op.hpp +3 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_buffer_sequence.hpp +7 -49
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_executor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/keyword_tss_ptr.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/kqueue_reactor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/limits.hpp +1 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/local_free_on_block_exit.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/memory.hpp +12 -44
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/mutex.hpp +3 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/non_const_lvalue.hpp +4 -15
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/noncopyable.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_event.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_fenced_block.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_global.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_mutex.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_reactor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_signal_blocker.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_socket_service.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_static_mutex.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_thread.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_tss_ptr.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/object_pool.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/op_queue.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/operation.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pipe_select_interrupter.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pop_options.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_event.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_fd_set_adapter.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_global.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_mutex.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_serial_port_service.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_signal_blocker.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_static_mutex.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_thread.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_tss_ptr.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/push_options.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_descriptor_service.hpp +9 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_null_buffers_op.hpp +4 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_accept_op.hpp +11 -16
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_connect_op.hpp +4 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recv_op.hpp +4 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvfrom_op.hpp +4 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvmsg_op.hpp +4 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_send_op.hpp +4 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_sendto_op.hpp +4 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service.hpp +11 -13
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service_base.hpp +15 -15
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_wait_op.hpp +4 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op_queue.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/recycling_allocator.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/regex_fwd.hpp +4 -13
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_endpoint_op.hpp +3 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_op.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_query_op.hpp +3 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_operation.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_task.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_thread_info.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_lock.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_ptr.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_interrupter.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_reactor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/service_registry.hpp +2 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_blocker.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_handler.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_init.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_op.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_set_service.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_holder.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_ops.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_option.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_select_interrupter.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_types.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/source_location.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/static_mutex.hpp +3 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_event.hpp +1 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_fenced_block.hpp +1 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_global.hpp +1 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_mutex.hpp +1 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_static_mutex.hpp +1 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_thread.hpp +1 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_executor_service.hpp +13 -13
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_service.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/string_view.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread.hpp +3 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_context.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_group.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_info_base.hpp +12 -22
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_error.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_exception.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_ptime.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_set.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler_fwd.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/tss_ptr.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/type_traits.hpp +104 -90
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/utility.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_handler.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_op.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/winsock_init.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/work_dispatcher.hpp +20 -34
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wrapped_handler.hpp +7 -117
- data/src/cxx_supportlib/vendor-modified/boost/asio/dispatch.hpp +21 -26
- data/src/cxx_supportlib/vendor-modified/boost/asio/error.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/allocator.hpp +34 -112
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/any_executor.hpp +229 -1019
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bad_executor.hpp +3 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking.hpp +296 -536
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking_adaptation.hpp +232 -409
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context.hpp +20 -73
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context_as.hpp +30 -72
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/executor.hpp +24 -170
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/impl/bad_executor.ipp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/invocable_archetype.hpp +2 -30
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/mapping.hpp +240 -398
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/occupancy.hpp +20 -73
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/outstanding_work.hpp +149 -296
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/prefer_only.hpp +56 -59
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/relationship.hpp +149 -296
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution.hpp +1 -16
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution_context.hpp +1 -25
- data/src/cxx_supportlib/vendor-modified/boost/asio/executor.hpp +59 -43
- data/src/cxx_supportlib/vendor-modified/boost/asio/executor_work_guard.hpp +56 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/append.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_single.hpp +20 -24
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_tuple.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/awaitable_operators.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_channel.hpp +55 -33
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_concurrent_channel.hpp +55 -33
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/cancellation_condition.hpp +25 -28
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_error.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_traits.hpp +15 -15
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_composed.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/concurrent_channel.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/deferred.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_handler.hpp +10 -13
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_message.hpp +20 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_operation.hpp +130 -53
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_payload.hpp +92 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_receive_op.hpp +15 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_send_functions.hpp +73 -25
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_send_op.hpp +12 -12
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_service.hpp +48 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/has_signature.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/impl/channel_service.hpp +39 -30
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/as_single.hpp +33 -96
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/channel_error.ipp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/co_composed.hpp +16 -17
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/coro.hpp +14 -14
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/parallel_group.hpp +56 -60
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/promise.hpp +3 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_promise.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/parallel_group.hpp +27 -31
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/prepend.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_coro.hpp +14 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_promise.hpp +11 -11
- data/src/cxx_supportlib/vendor-modified/boost/asio/file_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/basic_endpoint.hpp +2 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/datagram_protocol.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/endpoint.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/impl/endpoint.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/raw_protocol.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/seq_packet_protocol.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/stream_protocol.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/handler_continuation_hook.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/high_resolution_timer.hpp +1 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_completion_executor.ipp +10 -14
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_io_executor.ipp +10 -17
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/append.hpp +37 -100
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/as_tuple.hpp +62 -137
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/awaitable.hpp +22 -21
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_read_stream.hpp +55 -178
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_write_stream.hpp +55 -178
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/cancellation_signal.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/co_spawn.hpp +44 -36
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect.hpp +84 -234
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect_pipe.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect_pipe.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/consign.hpp +32 -97
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/deferred.hpp +32 -41
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/detached.hpp +5 -58
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/error.ipp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.hpp +3 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.hpp +60 -43
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.ipp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.hpp +39 -56
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/multiple_exceptions.ipp +4 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/prepend.hpp +36 -98
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read.hpp +206 -429
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_at.hpp +60 -206
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_until.hpp +456 -970
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/redirect_error.hpp +36 -420
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/spawn.hpp +205 -421
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.hpp +1 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.ipp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_executor.hpp +19 -25
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.hpp +32 -109
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_awaitable.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_future.hpp +77 -423
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write.hpp +213 -427
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write_at.hpp +58 -194
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_context.hpp +91 -120
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_context_strand.hpp +33 -25
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_service.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_service_strand.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address.hpp +26 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4.hpp +25 -34
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_iterator.hpp +13 -19
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_range.hpp +16 -22
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6.hpp +33 -42
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_iterator.hpp +13 -18
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_range.hpp +15 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/bad_address_cast.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_endpoint.hpp +26 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver.hpp +46 -76
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_entry.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_iterator.hpp +4 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_query.hpp +17 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_results.hpp +9 -13
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/endpoint.hpp +17 -17
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/impl/endpoint.ipp +10 -14
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/socket_option.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/host_name.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/icmp.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.ipp +18 -22
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.ipp +9 -13
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.ipp +24 -32
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/basic_endpoint.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/host_name.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.ipp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.ipp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/multicast.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v4.hpp +16 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v6.hpp +14 -18
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_query_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/tcp.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/udp.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/unicast.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/v6_only.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_applicable_property.hpp +6 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_contiguous_iterator.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_executor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_read_buffered.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_write_buffered.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/basic_endpoint.hpp +2 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/connect_pair.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/datagram_protocol.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/endpoint.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/impl/endpoint.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/seq_packet_protocol.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/stream_protocol.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/multiple_exceptions.hpp +3 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/packaged_task.hpp +1 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/placeholders.hpp +29 -105
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_descriptor.hpp +21 -29
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_stream_descriptor.hpp +24 -34
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/stream_descriptor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/post.hpp +21 -26
- data/src/cxx_supportlib/vendor-modified/boost/asio/prefer.hpp +176 -333
- data/src/cxx_supportlib/vendor-modified/boost/asio/prepend.hpp +11 -23
- data/src/cxx_supportlib/vendor-modified/boost/asio/query.hpp +57 -70
- data/src/cxx_supportlib/vendor-modified/boost/asio/random_access_file.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/read.hpp +136 -168
- data/src/cxx_supportlib/vendor-modified/boost/asio/read_at.hpp +35 -52
- data/src/cxx_supportlib/vendor-modified/boost/asio/read_until.hpp +256 -298
- data/src/cxx_supportlib/vendor-modified/boost/asio/readable_pipe.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/recycling_allocator.hpp +15 -15
- data/src/cxx_supportlib/vendor-modified/boost/asio/redirect_error.hpp +7 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/registered_buffer.hpp +35 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/require.hpp +108 -246
- data/src/cxx_supportlib/vendor-modified/boost/asio/require_concept.hpp +70 -79
- data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set_base.hpp +10 -21
- data/src/cxx_supportlib/vendor-modified/boost/asio/socket_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/spawn.hpp +127 -161
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context.hpp +1 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/buffered_handshake_op.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/engine.hpp +3 -7
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/handshake_op.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/engine.ipp +3 -7
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/openssl_init.ipp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/io.hpp +16 -75
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_init.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_types.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/password_callback.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/read_op.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/shutdown_op.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/stream_core.hpp +15 -19
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/verify_callback.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/write_op.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/error.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/host_name_verification.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.ipp +2 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/error.ipp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/host_name_verification.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/rfc2818_verification.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/src.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/rfc2818_verification.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream.hpp +51 -82
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream_base.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_context.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_mode.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/static_thread_pool.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/steady_timer.hpp +1 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/strand.hpp +91 -118
- data/src/cxx_supportlib/vendor-modified/boost/asio/stream_file.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/streambuf.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_context.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_executor.hpp +62 -62
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_timer.hpp +1 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/this_coro.hpp +35 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/thread_pool.hpp +91 -273
- data/src/cxx_supportlib/vendor-modified/boost/asio/time_traits.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/equality_comparable.hpp +14 -18
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/execute_member.hpp +16 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_free.hpp +16 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_member.hpp +16 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_free.hpp +16 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_member.hpp +16 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_static_constexpr_member.hpp +15 -22
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_free.hpp +16 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_member.hpp +16 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_free.hpp +16 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_member.hpp +16 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_query.hpp +20 -26
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require.hpp +22 -30
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require_concept.hpp +22 -30
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/buffer.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/executor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/internet.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/io_context.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/net.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/netfwd.hpp +6 -24
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/socket.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/timer.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/unyield.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/use_awaitable.hpp +15 -21
- data/src/cxx_supportlib/vendor-modified/boost/asio/use_future.hpp +8 -12
- data/src/cxx_supportlib/vendor-modified/boost/asio/uses_executor.hpp +2 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/version.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/wait_traits.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/writable_pipe.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/write.hpp +122 -146
- data/src/cxx_supportlib/vendor-modified/boost/asio/write_at.hpp +34 -50
- data/src/cxx_supportlib/vendor-modified/boost/asio/yield.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio.hpp +1 -27
- data/src/cxx_supportlib/vendor-modified/boost/assert/source_location.hpp +4 -2
- data/src/cxx_supportlib/vendor-modified/boost/atomic/atomic.hpp +2 -3
- data/src/cxx_supportlib/vendor-modified/boost/atomic/atomic_ref.hpp +2 -3
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/atomic_ref_impl.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_operations_emulated.hpp +12 -13
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_fp_ops_emulated.hpp +7 -8
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_emulated.hpp +26 -27
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/float_sizes.hpp +122 -35
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fp_ops_emulated.hpp +2 -3
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/pause.hpp +7 -0
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_on_address.hpp +1 -2
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_emulated.hpp +3 -4
- data/src/cxx_supportlib/vendor-modified/boost/atomic/ipc_atomic.hpp +2 -3
- data/src/cxx_supportlib/vendor-modified/boost/atomic/ipc_atomic_ref.hpp +2 -3
- data/src/cxx_supportlib/vendor-modified/boost/bind/apply.hpp +2 -61
- data/src/cxx_supportlib/vendor-modified/boost/bind/bind.hpp +229 -1740
- data/src/cxx_supportlib/vendor-modified/boost/bind/{bind_cc.hpp → detail/bind_cc.hpp} +20 -20
- data/src/cxx_supportlib/vendor-modified/boost/bind/detail/bind_mf2_cc.hpp +210 -0
- data/src/cxx_supportlib/vendor-modified/boost/bind/detail/bind_mf_cc.hpp +405 -0
- data/src/cxx_supportlib/vendor-modified/boost/bind/detail/integer_sequence.hpp +111 -0
- data/src/cxx_supportlib/vendor-modified/boost/bind/detail/tuple_for_each.hpp +64 -0
- data/src/cxx_supportlib/vendor-modified/boost/bind/mem_fn.hpp +138 -289
- data/src/cxx_supportlib/vendor-modified/boost/bind/placeholders.hpp +3 -16
- data/src/cxx_supportlib/vendor-modified/boost/bind/protect.hpp +0 -280
- data/src/cxx_supportlib/vendor-modified/boost/bind/std_placeholders.hpp +0 -7
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/is_evenly_divisible_by.hpp +1 -7
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/requires_cxx11.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/chrono/duration.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_units.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/system_clocks.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx03.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx11.hpp +4 -1
- data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx14.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx17.hpp +4 -1
- data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx20.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx23.hpp +41 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/borland.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang_version.hpp +8 -2
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/codegear.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/common_edg.hpp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/digitalmars.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/gcc.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/gcc_xml.hpp +3 -2
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/hp_acc.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/metrowerks.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/mpw.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/nvcc.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/pathscale.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/sunpro_cc.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/vacpp.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/visualc.hpp +7 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/xlcpp.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/xlcpp_zos.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/detail/cxx_composite.hpp +16 -1
- data/src/cxx_supportlib/vendor-modified/boost/config/detail/suffix.hpp +40 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/adaptive_pool.hpp +6 -7
- data/src/cxx_supportlib/vendor-modified/boost/container/allocator.hpp +18 -19
- data/src/cxx_supportlib/vendor-modified/boost/container/allocator_traits.hpp +27 -29
- data/src/cxx_supportlib/vendor-modified/boost/container/deque.hpp +112 -112
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/advanced_insert_int.hpp +40 -40
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/alloc_helpers.hpp +6 -6
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/allocator_version_traits.hpp +10 -10
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/compare_functors.hpp +22 -22
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/copy_move_algo.hpp +30 -25
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/destroyers.hpp +48 -48
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/dispatch_uses_allocator.hpp +6 -6
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/flat_tree.hpp +129 -129
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/iterators.hpp +162 -163
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/math_functions.hpp +1 -2
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/next_capacity.hpp +6 -8
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/node_alloc_holder.hpp +32 -32
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/node_pool_impl.hpp +6 -6
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/pair.hpp +18 -19
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/transform_iterator.hpp +28 -28
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/tree.hpp +77 -77
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/value_init.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/workaround.hpp +44 -1
- data/src/cxx_supportlib/vendor-modified/boost/container/devector.hpp +78 -78
- data/src/cxx_supportlib/vendor-modified/boost/container/flat_map.hpp +231 -231
- data/src/cxx_supportlib/vendor-modified/boost/container/flat_set.hpp +85 -85
- data/src/cxx_supportlib/vendor-modified/boost/container/list.hpp +33 -33
- data/src/cxx_supportlib/vendor-modified/boost/container/map.hpp +107 -109
- data/src/cxx_supportlib/vendor-modified/boost/container/new_allocator.hpp +9 -11
- data/src/cxx_supportlib/vendor-modified/boost/container/node_allocator.hpp +10 -11
- data/src/cxx_supportlib/vendor-modified/boost/container/node_handle.hpp +18 -8
- data/src/cxx_supportlib/vendor-modified/boost/container/options.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/container/pmr/resource_adaptor.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/container/scoped_allocator.hpp +80 -80
- data/src/cxx_supportlib/vendor-modified/boost/container/set.hpp +81 -81
- data/src/cxx_supportlib/vendor-modified/boost/container/slist.hpp +24 -24
- data/src/cxx_supportlib/vendor-modified/boost/container/small_vector.hpp +115 -109
- data/src/cxx_supportlib/vendor-modified/boost/container/stable_vector.hpp +101 -101
- data/src/cxx_supportlib/vendor-modified/boost/container/static_vector.hpp +32 -32
- data/src/cxx_supportlib/vendor-modified/boost/container/string.hpp +150 -190
- data/src/cxx_supportlib/vendor-modified/boost/container/vector.hpp +165 -165
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_integral.hpp +146 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_mix.hpp +6 -6
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_range.hpp +84 -86
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_tuple_like.hpp +5 -99
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/mulx.hpp +20 -20
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash.hpp +25 -126
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_contiguous_range.hpp +27 -21
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_described_class.hpp +4 -5
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_range.hpp +8 -41
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_tuple_like.hpp +4 -10
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_unordered_range.hpp +6 -7
- data/src/cxx_supportlib/vendor-modified/boost/core/allocator_access.hpp +20 -6
- data/src/cxx_supportlib/vendor-modified/boost/core/bit.hpp +19 -1
- data/src/cxx_supportlib/vendor-modified/boost/core/checked_delete.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/detail/sp_thread_pause.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/core/detail/string_view.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/core/fclose_deleter.hpp +7 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/functor.hpp +41 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/invoke_swap.hpp +93 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/launder.hpp +17 -3
- data/src/cxx_supportlib/vendor-modified/boost/core/null_deleter.hpp +7 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/swap.hpp +6 -55
- data/src/cxx_supportlib/vendor-modified/boost/detail/basic_pointerbuf.hpp +3 -6
- data/src/cxx_supportlib/vendor-modified/boost/detail/lcast_precision.hpp +6 -97
- data/src/cxx_supportlib/vendor-modified/boost/exception/current_exception_cast.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/exception/detail/clone_current_exception.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/exception/detail/error_info_impl.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/exception/detail/exception_ptr.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/exception/detail/is_output_streamable.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/exception/detail/object_hex_dump.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/{ratio → exception}/detail/requires_cxx11.hpp +7 -5
- data/src/cxx_supportlib/vendor-modified/boost/exception/detail/type_info.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/exception/diagnostic_information.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/exception/exception.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/exception/get_error_info.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/exception/info.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/exception/to_string.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/exception/to_string_stub.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/function/function0.hpp +1 -3
- data/src/cxx_supportlib/vendor-modified/boost/function/function1.hpp +1 -3
- data/src/cxx_supportlib/vendor-modified/boost/function/function10.hpp +1 -3
- data/src/cxx_supportlib/vendor-modified/boost/function/function2.hpp +1 -3
- data/src/cxx_supportlib/vendor-modified/boost/function/function3.hpp +1 -3
- data/src/cxx_supportlib/vendor-modified/boost/function/function4.hpp +1 -3
- data/src/cxx_supportlib/vendor-modified/boost/function/function5.hpp +1 -3
- data/src/cxx_supportlib/vendor-modified/boost/function/function6.hpp +1 -3
- data/src/cxx_supportlib/vendor-modified/boost/function/function7.hpp +1 -3
- data/src/cxx_supportlib/vendor-modified/boost/function/function8.hpp +1 -3
- data/src/cxx_supportlib/vendor-modified/boost/function/function9.hpp +1 -3
- data/src/cxx_supportlib/vendor-modified/boost/function/function_base.hpp +21 -166
- data/src/cxx_supportlib/vendor-modified/boost/function/function_fwd.hpp +36 -41
- data/src/cxx_supportlib/vendor-modified/boost/function/function_template.hpp +267 -418
- data/src/cxx_supportlib/vendor-modified/boost/function/function_typeof.hpp +1 -31
- data/src/cxx_supportlib/vendor-modified/boost/function.hpp +5 -63
- data/src/cxx_supportlib/vendor-modified/boost/integer/extended_euclidean.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/avl_set.hpp +24 -25
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree.hpp +12 -13
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree_algorithms.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/bs_set.hpp +24 -25
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree.hpp +65 -66
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree_algorithms.hpp +20 -20
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/circular_list_algorithms.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/circular_slist_algorithms.hpp +10 -10
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/any_node_and_algorithms.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/common_slist_algorithms.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/default_header_holder.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/ebo_functor_holder.hpp +24 -24
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/equal_to_value.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/exception_disposer.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/generic_hook.hpp +14 -15
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hash.hpp +277 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hash_combine.hpp +11 -49
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hash_integral.hpp +119 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hash_mix.hpp +130 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hashtable_node.hpp +41 -41
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hook_traits.hpp +14 -21
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/iiterator.hpp +6 -6
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/iterator.hpp +12 -12
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/key_nodeptr_comp.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/list_iterator.hpp +19 -19
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/mpl.hpp +6 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/node_cloner_disposer.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/parent_from_member.hpp +6 -17
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/simple_disposers.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/size_holder.hpp +14 -14
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/slist_iterator.hpp +20 -21
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/transform_iterator.hpp +22 -22
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/tree_iterator.hpp +21 -21
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/tree_value_compare.hpp +28 -28
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/workaround.hpp +32 -1
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/hashtable.hpp +268 -239
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/linear_slist_algorithms.hpp +9 -9
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/list.hpp +56 -57
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/pack_options.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/pointer_traits.hpp +18 -18
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/priority_compare.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree.hpp +12 -13
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/set.hpp +24 -25
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/sg_set.hpp +24 -25
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree.hpp +14 -15
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree_algorithms.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/slist.hpp +60 -61
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/splay_set.hpp +24 -25
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree.hpp +12 -13
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap.hpp +18 -19
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_algorithms.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_set.hpp +36 -37
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/unordered_set.hpp +37 -34
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/unordered_set_hook.hpp +11 -11
- data/src/cxx_supportlib/vendor-modified/boost/io/ios_state.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/bad_lexical_cast.hpp +7 -13
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/buffer_view.hpp +59 -0
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical.hpp +113 -131
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical_streams.hpp +611 -633
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_numeric.hpp +85 -79
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/inf_nan.hpp +25 -32
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/is_character.hpp +22 -29
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_basic_unlockedbuf.hpp +73 -0
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_char_constants.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_unsigned_converters.hpp +21 -16
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/widest_char.hpp +7 -9
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/try_lexical_convert.hpp +22 -161
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast.hpp +9 -30
- data/src/cxx_supportlib/vendor-modified/boost/libs/chrono/src/chrono.cpp +4 -2
- data/src/cxx_supportlib/vendor-modified/boost/libs/chrono/src/process_cpu_clocks.cpp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/libs/chrono/src/thread_clock.cpp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/libs/thread/src/pthread/thread.cpp +24 -14
- data/src/cxx_supportlib/vendor-modified/boost/move/adl_move_swap.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/adaptive_merge.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/adaptive_sort.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/adaptive_sort_merge.hpp +5 -19
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/basic_op.hpp +10 -10
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/heap_sort.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/merge.hpp +15 -15
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/predicate.hpp +10 -10
- data/src/cxx_supportlib/vendor-modified/boost/move/core.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/iterator_to_raw_pointer.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/meta_utils.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/move_helpers.hpp +24 -24
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/reverse_iterator.hpp +28 -28
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/to_raw_pointer.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/type_traits.hpp +67 -17
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/workaround.hpp +5 -2
- data/src/cxx_supportlib/vendor-modified/boost/move/iterator.hpp +22 -22
- data/src/cxx_supportlib/vendor-modified/boost/move/unique_ptr.hpp +48 -48
- data/src/cxx_supportlib/vendor-modified/boost/mp11/algorithm.hpp +59 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/bind.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_fold.hpp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/mp11/integer_sequence.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/integral.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/list.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/version.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/none_t.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/old_optional_implementation.hpp +2 -1
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_swap.hpp +6 -6
- data/src/cxx_supportlib/vendor-modified/boost/optional/optional.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/pool/pool.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/msvc.h +53 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/library/std.h +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/make.h +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/predef/os/vms.h +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/predef/version.h +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/has_opt.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/inversive_congruential.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/random/splitmix64.hpp +203 -0
- data/src/cxx_supportlib/vendor-modified/boost/random/subtract_with_carry.hpp +14 -14
- data/src/cxx_supportlib/vendor-modified/boost/random/uniform_real_distribution.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/random.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/config.hpp +4 -87
- data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/gcd_lcm.hpp +53 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/is_evenly_divisible_by.hpp +32 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/is_ratio.hpp +28 -0
- data/src/cxx_supportlib/vendor-modified/boost/ratio/include.hpp +1 -3
- data/src/cxx_supportlib/vendor-modified/boost/ratio/ratio.hpp +5 -249
- data/src/cxx_supportlib/vendor-modified/boost/ratio/ratio_fwd.hpp +30 -56
- data/src/cxx_supportlib/vendor-modified/boost/ratio/ratio_io.hpp +0 -533
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/requires_cxx11.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/intrusive_ptr.hpp +0 -11
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_unique.hpp +70 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/shared_ptr.hpp +0 -11
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/config.hpp +1 -8
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/enable_if.hpp +3 -12
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category.hpp +13 -57
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category_impl.hpp +5 -29
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_code.hpp +51 -124
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_condition.hpp +29 -52
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/generic_category.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/generic_category_message.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/interop_category.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/is_same.hpp +3 -13
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/mutex.hpp +8 -1
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/snprintf.hpp +1 -46
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/std_category.hpp +5 -9
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/std_category_impl.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category_impl.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category_message.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/system/errc.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/system/system_error.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/deque.hpp +1 -24
- data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/functional.hpp +1 -14
- data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/list.hpp +1 -14
- data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/memory/allocator_arg.hpp +2 -12
- data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/memory/allocator_traits.hpp +0 -11
- data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/memory/config.hpp +0 -2
- data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/memory/default_delete.hpp +0 -16
- data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/memory/pointer_traits.hpp +0 -11
- data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/memory/scoped_allocator.hpp +0 -11
- data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/memory/shared_ptr.hpp +0 -19
- data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/memory/unique_ptr.hpp +4 -6
- data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/queue.hpp +2 -26
- data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/tuple.hpp +1 -18
- data/src/cxx_supportlib/vendor-modified/boost/thread/csbl/vector.hpp +1 -14
- data/src/cxx_supportlib/vendor-modified/boost/thread/detail/invoke.hpp +11 -4
- data/src/cxx_supportlib/vendor-modified/boost/thread/detail/string_to_unsigned.hpp +55 -0
- data/src/cxx_supportlib/vendor-modified/boost/thread/detail/string_trim.hpp +29 -0
- data/src/cxx_supportlib/vendor-modified/boost/thread/externally_locked.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/thread/future.hpp +0 -1
- data/src/cxx_supportlib/vendor-modified/boost/thread/futures/wait_for_any.hpp +3 -2
- data/src/cxx_supportlib/vendor-modified/boost/thread/synchronized_value.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/tuple/detail/tuple_basic.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/tuple/tuple.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_floating_point.hpp +22 -0
- data/src/cxx_supportlib/vendor-modified/boost/typeof/decltype.hpp +2 -3
- data/src/cxx_supportlib/vendor-modified/boost/typeof/incr_registration_group.hpp +1 -10
- data/src/cxx_supportlib/vendor-modified/boost/typeof/msvc/typeof_impl.hpp +5 -6
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/bitset.hpp +2 -4
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/complex.hpp +2 -4
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/deque.hpp +2 -5
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/fstream.hpp +2 -15
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/functional.hpp +2 -54
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/iostream.hpp +2 -6
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/istream.hpp +2 -9
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/iterator.hpp +2 -46
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/list.hpp +2 -5
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/locale.hpp +2 -29
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/map.hpp +2 -9
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/memory.hpp +2 -12
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/ostream.hpp +2 -6
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/queue.hpp +2 -5
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/set.hpp +2 -9
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/sstream.hpp +2 -19
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/stack.hpp +2 -5
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/streambuf.hpp +2 -5
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/string.hpp +2 -12
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/utility.hpp +2 -4
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/valarray.hpp +2 -10
- data/src/cxx_supportlib/vendor-modified/boost/typeof/std/vector.hpp +2 -5
- data/src/cxx_supportlib/vendor-modified/boost/typeof/typeof.hpp +8 -203
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_map.hpp +145 -103
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_map_fwd.hpp +1 -4
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_set.hpp +716 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_set_fwd.hpp +52 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/allocator_constructed.hpp +59 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/archive_constructed.hpp +71 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/bad_archive_exception.hpp +27 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/concurrent_static_asserts.hpp +105 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/fca.hpp +120 -85
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/concurrent_table.hpp +531 -91
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/core.hpp +346 -194
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/element_type.hpp +10 -6
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/flat_map_types.hpp +13 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_handle.hpp +2 -8
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_map_types.hpp +22 -15
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_set_types.hpp +10 -13
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/reentrancy_check.hpp +138 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/table.hpp +150 -55
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/implementation.hpp +346 -1039
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/map.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/narrow_cast.hpp +8 -8
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/opt_storage.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/prime_fmod.hpp +95 -144
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/serialization_version.hpp +74 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/serialize_container.hpp +204 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/serialize_fca_container.hpp +156 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/serialize_tracked_address.hpp +104 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/static_assert.hpp +16 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/throw_exception.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/type_traits.hpp +123 -19
- data/src/cxx_supportlib/vendor-modified/boost/unordered/hash_traits.hpp +4 -5
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map.hpp +65 -46
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map_fwd.hpp +1 -5
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set.hpp +41 -23
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set_fwd.hpp +1 -5
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map.hpp +324 -997
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map_fwd.hpp +7 -12
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_map.hpp +57 -46
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_map_fwd.hpp +1 -5
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_set.hpp +35 -24
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_set_fwd.hpp +1 -5
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set.hpp +229 -629
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set_fwd.hpp +8 -13
- data/src/cxx_supportlib/vendor-modified/boost/utility/swap.hpp +4 -1
- data/src/cxx_supportlib/vendor-modified/boost/utility/value_init.hpp +8 -8
- data/src/cxx_supportlib/vendor-modified/boost/version.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/jsoncpp/jsoncpp.cpp +2 -9
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/frame.hpp +0 -11
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/hybi13.hpp +14 -20
- data/src/helper-scripts/wsgi-loader.py +2 -2
- data/src/nginx_module/ConfigGeneral/ManifestGeneration.c +2 -2
- data/src/ruby_supportlib/phusion_passenger/common_library.rb +16 -5
- data/src/ruby_supportlib/phusion_passenger/config/nginx_engine_compiler.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/native_support.rb +10 -7
- data/src/ruby_supportlib/phusion_passenger/platform_info/apache.rb +3 -7
- data/src/ruby_supportlib/phusion_passenger/platform_info/compiler.rb +14 -0
- data/src/ruby_supportlib/phusion_passenger/platform_info/cxx_portability.rb +4 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/depcheck_specs/libs.rb +6 -6
- data/src/ruby_supportlib/phusion_passenger/platform_info/pcre.rb +11 -12
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/app.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/gdb_controller.rb +4 -0
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/lldb_controller.rb +5 -1
- data/src/ruby_supportlib/phusion_passenger.rb +8 -8
- metadata +50 -149
- data/src/cxx_supportlib/ServerKit/http_parser.cpp +0 -2575
- data/src/cxx_supportlib/ServerKit/http_parser.h +0 -452
- data/src/cxx_supportlib/vendor-modified/boost/array.hpp +0 -456
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bulk_executor_op.hpp +0 -91
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_arm_fenced_block.hpp +0 -93
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_hppa_fenced_block.hpp +0 -70
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_sync_fenced_block.hpp +0 -67
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_x86_fenced_block.hpp +0 -101
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_invoke_helpers.hpp +0 -80
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/macos_fenced_block.hpp +0 -64
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/old_win_sdk_compat.hpp +0 -216
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/solaris_fenced_block.hpp +0 -64
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/variadic_templates.hpp +0 -294
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_execute.hpp +0 -406
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_guarantee.hpp +0 -1254
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/connect.hpp +0 -498
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_invocable.hpp +0 -154
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_operation.hpp +0 -111
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_receiver.hpp +0 -130
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/bulk_sender.hpp +0 -263
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/submit_receiver.hpp +0 -235
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/void_receiver.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/execute.hpp +0 -296
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/impl/receiver_invocation_error.ipp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/operation_state.hpp +0 -101
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/receiver.hpp +0 -287
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/receiver_invocation_error.hpp +0 -50
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/schedule.hpp +0 -296
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/scheduler.hpp +0 -93
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/sender.hpp +0 -318
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_done.hpp +0 -259
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_error.hpp +0 -259
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_value.hpp +0 -492
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/start.hpp +0 -256
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/submit.hpp +0 -459
- data/src/cxx_supportlib/vendor-modified/boost/asio/handler_alloc_hook.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/handler_invoke_hook.hpp +0 -113
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/handler_alloc_hook.ipp +0 -64
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/bulk_execute_free.hpp +0 -116
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/bulk_execute_member.hpp +0 -116
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/connect_free.hpp +0 -114
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/connect_member.hpp +0 -114
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/execute_free.hpp +0 -110
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/schedule_free.hpp +0 -110
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/schedule_member.hpp +0 -110
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_done_free.hpp +0 -110
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_done_member.hpp +0 -110
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_error_free.hpp +0 -114
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_error_member.hpp +0 -114
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_value_free.hpp +0 -236
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_value_member.hpp +0 -236
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/start_free.hpp +0 -110
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/start_member.hpp +0 -110
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/submit_free.hpp +0 -114
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/submit_member.hpp +0 -114
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_object_handle.hpp +0 -495
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_overlapped_handle.hpp +0 -462
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_random_access_handle.hpp +0 -581
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_stream_handle.hpp +0 -563
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/object_handle.hpp +0 -40
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/overlapped_handle.hpp +0 -41
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/overlapped_ptr.hpp +0 -147
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/random_access_handle.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/stream_handle.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_ops_windows.hpp +0 -201
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/fence_ops_windows.hpp +0 -67
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_caps_windows.hpp +0 -57
- data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/wait_ops_windows.hpp +0 -179
- data/src/cxx_supportlib/vendor-modified/boost/bind/bind_mf2_cc.hpp +0 -228
- data/src/cxx_supportlib/vendor-modified/boost/bind/bind_mf_cc.hpp +0 -441
- data/src/cxx_supportlib/vendor-modified/boost/bind/bind_template.hpp +0 -345
- data/src/cxx_supportlib/vendor-modified/boost/bind/detail/is_same.hpp +0 -36
- data/src/cxx_supportlib/vendor-modified/boost/bind/detail/requires_cxx11.hpp +0 -22
- data/src/cxx_supportlib/vendor-modified/boost/bind/mem_fn_cc.hpp +0 -103
- data/src/cxx_supportlib/vendor-modified/boost/bind/mem_fn_template.hpp +0 -1047
- data/src/cxx_supportlib/vendor-modified/boost/bind/mem_fn_vw.hpp +0 -130
- data/src/cxx_supportlib/vendor-modified/boost/bind/storage.hpp +0 -476
- data/src/cxx_supportlib/vendor-modified/boost/config/platform/cygwin.hpp +0 -71
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/requires_cxx11.hpp +0 -22
- data/src/cxx_supportlib/vendor-modified/boost/core/detail/sp_win32_sleep.hpp +0 -54
- data/src/cxx_supportlib/vendor-modified/boost/detail/atomic_count.hpp +0 -21
- data/src/cxx_supportlib/vendor-modified/boost/function/detail/epilogue.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/boost/function/detail/function_iterate.hpp +0 -16
- data/src/cxx_supportlib/vendor-modified/boost/function/detail/gen_maybe_include.pl +0 -39
- data/src/cxx_supportlib/vendor-modified/boost/function/detail/maybe_include.hpp +0 -369
- data/src/cxx_supportlib/vendor-modified/boost/function/detail/prologue.hpp +0 -27
- data/src/cxx_supportlib/vendor-modified/boost/function/detail/requires_cxx11.hpp +0 -22
- data/src/cxx_supportlib/vendor-modified/boost/function/gen_function_N.pl +0 -26
- data/src/cxx_supportlib/vendor-modified/boost/functional/hash_fwd.hpp +0 -6
- data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/mpl/abs.hpp +0 -89
- data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/mpl/gcd.hpp +0 -124
- data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/mpl/lcm.hpp +0 -126
- data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/mpl/sign.hpp +0 -89
- data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/overflow_helpers.hpp +0 -367
- data/src/cxx_supportlib/vendor-modified/boost/ratio/detail/ratio_io.hpp +0 -1342
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/abs.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/arithmetic.hpp +0 -22
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/comparison.hpp +0 -19
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/divides.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/equal_to.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/gcd.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/greater.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/greater_equal.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/lcm.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/less.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/less_equal.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/minus.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/negate.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/not_equal_to.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/numeric_cast.hpp +0 -31
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/plus.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/rational_c_tag.hpp +0 -25
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/rational_constant.hpp +0 -15
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/sign.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/ratio/mpl/times.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/swap.hpp +0 -17
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/requires_cxx11.hpp +0 -21
- data/src/cxx_supportlib/vendor-modified/boost/typeof/detail/requires_cxx11.hpp +0 -18
- data/src/cxx_supportlib/vendor-modified/boost/typeof/dmc/typeof_impl.hpp +0 -100
- data/src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode.hpp +0 -58
- data/src/cxx_supportlib/vendor-modified/boost/typeof/encode_decode_params.hpp +0 -34
- data/src/cxx_supportlib/vendor-modified/boost/typeof/int_encoding.hpp +0 -118
- data/src/cxx_supportlib/vendor-modified/boost/typeof/integral_template_param.hpp +0 -80
- data/src/cxx_supportlib/vendor-modified/boost/typeof/message.hpp +0 -8
- data/src/cxx_supportlib/vendor-modified/boost/typeof/modifiers.hpp +0 -121
- data/src/cxx_supportlib/vendor-modified/boost/typeof/native.hpp +0 -60
- data/src/cxx_supportlib/vendor-modified/boost/typeof/pointers_data_members.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/typeof/register_functions.hpp +0 -50
- data/src/cxx_supportlib/vendor-modified/boost/typeof/register_functions_iterate.hpp +0 -135
- data/src/cxx_supportlib/vendor-modified/boost/typeof/register_fundamental.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/typeof/register_mem_functions.hpp +0 -32
- data/src/cxx_supportlib/vendor-modified/boost/typeof/template_encoding.hpp +0 -160
- data/src/cxx_supportlib/vendor-modified/boost/typeof/template_template_param.hpp +0 -149
- data/src/cxx_supportlib/vendor-modified/boost/typeof/type_encoding.hpp +0 -27
- data/src/cxx_supportlib/vendor-modified/boost/typeof/type_template_param.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/typeof/typeof_impl.hpp +0 -187
- data/src/cxx_supportlib/vendor-modified/boost/typeof/unsupported.hpp +0 -29
- data/src/cxx_supportlib/vendor-modified/boost/typeof/vector.hpp +0 -166
- data/src/cxx_supportlib/vendor-modified/boost/typeof/vector100.hpp +0 -321
- data/src/cxx_supportlib/vendor-modified/boost/typeof/vector150.hpp +0 -471
- data/src/cxx_supportlib/vendor-modified/boost/typeof/vector200.hpp +0 -621
- data/src/cxx_supportlib/vendor-modified/boost/typeof/vector50.hpp +0 -171
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/fwd.hpp +0 -150
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/requires_cxx11.hpp +0 -21
- /data/dev/{webpacketpp.patch → websocketpp.patch} +0 -0
@@ -2,7 +2,7 @@
|
|
2
2
|
// impl/read_until.hpp
|
3
3
|
// ~~~~~~~~~~~~~~~~~~~
|
4
4
|
//
|
5
|
-
// Copyright (c) 2003-
|
5
|
+
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
|
6
6
|
//
|
7
7
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
8
8
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
@@ -24,9 +24,7 @@
|
|
24
24
|
#include <boost/asio/buffers_iterator.hpp>
|
25
25
|
#include <boost/asio/detail/base_from_cancellation_state.hpp>
|
26
26
|
#include <boost/asio/detail/bind_handler.hpp>
|
27
|
-
#include <boost/asio/detail/handler_alloc_helpers.hpp>
|
28
27
|
#include <boost/asio/detail/handler_cont_helpers.hpp>
|
29
|
-
#include <boost/asio/detail/handler_invoke_helpers.hpp>
|
30
28
|
#include <boost/asio/detail/handler_tracking.hpp>
|
31
29
|
#include <boost/asio/detail/handler_type_requirements.hpp>
|
32
30
|
#include <boost/asio/detail/limits.hpp>
|
@@ -77,34 +75,34 @@ namespace detail
|
|
77
75
|
|
78
76
|
template <typename SyncReadStream, typename DynamicBuffer_v1>
|
79
77
|
inline std::size_t read_until(SyncReadStream& s,
|
80
|
-
|
81
|
-
|
82
|
-
is_dynamic_buffer_v1<
|
83
|
-
|
84
|
-
|
85
|
-
!is_dynamic_buffer_v2<
|
86
|
-
|
78
|
+
DynamicBuffer_v1&& buffers, char delim,
|
79
|
+
constraint_t<
|
80
|
+
is_dynamic_buffer_v1<decay_t<DynamicBuffer_v1>>::value
|
81
|
+
>,
|
82
|
+
constraint_t<
|
83
|
+
!is_dynamic_buffer_v2<decay_t<DynamicBuffer_v1>>::value
|
84
|
+
>)
|
87
85
|
{
|
88
86
|
boost::system::error_code ec;
|
89
87
|
std::size_t bytes_transferred = read_until(s,
|
90
|
-
|
88
|
+
static_cast<DynamicBuffer_v1&&>(buffers), delim, ec);
|
91
89
|
boost::asio::detail::throw_error(ec, "read_until");
|
92
90
|
return bytes_transferred;
|
93
91
|
}
|
94
92
|
|
95
93
|
template <typename SyncReadStream, typename DynamicBuffer_v1>
|
96
94
|
std::size_t read_until(SyncReadStream& s,
|
97
|
-
|
95
|
+
DynamicBuffer_v1&& buffers,
|
98
96
|
char delim, boost::system::error_code& ec,
|
99
|
-
|
100
|
-
is_dynamic_buffer_v1<
|
101
|
-
|
102
|
-
|
103
|
-
!is_dynamic_buffer_v2<
|
104
|
-
|
97
|
+
constraint_t<
|
98
|
+
is_dynamic_buffer_v1<decay_t<DynamicBuffer_v1>>::value
|
99
|
+
>,
|
100
|
+
constraint_t<
|
101
|
+
!is_dynamic_buffer_v2<decay_t<DynamicBuffer_v1>>::value
|
102
|
+
>)
|
105
103
|
{
|
106
|
-
|
107
|
-
|
104
|
+
decay_t<DynamicBuffer_v1> b(
|
105
|
+
static_cast<DynamicBuffer_v1&&>(buffers));
|
108
106
|
|
109
107
|
std::size_t search_position = 0;
|
110
108
|
for (;;)
|
@@ -150,35 +148,35 @@ std::size_t read_until(SyncReadStream& s,
|
|
150
148
|
|
151
149
|
template <typename SyncReadStream, typename DynamicBuffer_v1>
|
152
150
|
inline std::size_t read_until(SyncReadStream& s,
|
153
|
-
|
151
|
+
DynamicBuffer_v1&& buffers,
|
154
152
|
BOOST_ASIO_STRING_VIEW_PARAM delim,
|
155
|
-
|
156
|
-
is_dynamic_buffer_v1<
|
157
|
-
|
158
|
-
|
159
|
-
!is_dynamic_buffer_v2<
|
160
|
-
|
153
|
+
constraint_t<
|
154
|
+
is_dynamic_buffer_v1<decay_t<DynamicBuffer_v1>>::value
|
155
|
+
>,
|
156
|
+
constraint_t<
|
157
|
+
!is_dynamic_buffer_v2<decay_t<DynamicBuffer_v1>>::value
|
158
|
+
>)
|
161
159
|
{
|
162
160
|
boost::system::error_code ec;
|
163
161
|
std::size_t bytes_transferred = read_until(s,
|
164
|
-
|
162
|
+
static_cast<DynamicBuffer_v1&&>(buffers), delim, ec);
|
165
163
|
boost::asio::detail::throw_error(ec, "read_until");
|
166
164
|
return bytes_transferred;
|
167
165
|
}
|
168
166
|
|
169
167
|
template <typename SyncReadStream, typename DynamicBuffer_v1>
|
170
168
|
std::size_t read_until(SyncReadStream& s,
|
171
|
-
|
169
|
+
DynamicBuffer_v1&& buffers,
|
172
170
|
BOOST_ASIO_STRING_VIEW_PARAM delim, boost::system::error_code& ec,
|
173
|
-
|
174
|
-
is_dynamic_buffer_v1<
|
175
|
-
|
176
|
-
|
177
|
-
!is_dynamic_buffer_v2<
|
178
|
-
|
171
|
+
constraint_t<
|
172
|
+
is_dynamic_buffer_v1<decay_t<DynamicBuffer_v1>>::value
|
173
|
+
>,
|
174
|
+
constraint_t<
|
175
|
+
!is_dynamic_buffer_v2<decay_t<DynamicBuffer_v1>>::value
|
176
|
+
>)
|
179
177
|
{
|
180
|
-
|
181
|
-
|
178
|
+
decay_t<DynamicBuffer_v1> b(
|
179
|
+
static_cast<DynamicBuffer_v1&&>(buffers));
|
182
180
|
|
183
181
|
std::size_t search_position = 0;
|
184
182
|
for (;;)
|
@@ -234,37 +232,48 @@ std::size_t read_until(SyncReadStream& s,
|
|
234
232
|
#if !defined(BOOST_ASIO_NO_EXTENSIONS)
|
235
233
|
#if defined(BOOST_ASIO_HAS_BOOST_REGEX)
|
236
234
|
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
235
|
+
namespace detail {
|
236
|
+
|
237
|
+
struct regex_match_flags
|
238
|
+
{
|
239
|
+
template <typename T>
|
240
|
+
operator T() const
|
241
|
+
{
|
242
|
+
return T::match_default | T::match_partial;
|
243
|
+
}
|
244
|
+
};
|
245
|
+
|
246
|
+
} // namespace detail
|
247
|
+
|
248
|
+
template <typename SyncReadStream, typename DynamicBuffer_v1, typename Traits>
|
249
|
+
inline std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers,
|
250
|
+
const boost::basic_regex<char, Traits>& expr,
|
251
|
+
constraint_t<
|
252
|
+
is_dynamic_buffer_v1<decay_t<DynamicBuffer_v1>>::value
|
253
|
+
>,
|
254
|
+
constraint_t<
|
255
|
+
!is_dynamic_buffer_v2<decay_t<DynamicBuffer_v1>>::value
|
256
|
+
>)
|
247
257
|
{
|
248
258
|
boost::system::error_code ec;
|
249
259
|
std::size_t bytes_transferred = read_until(s,
|
250
|
-
|
260
|
+
static_cast<DynamicBuffer_v1&&>(buffers), expr, ec);
|
251
261
|
boost::asio::detail::throw_error(ec, "read_until");
|
252
262
|
return bytes_transferred;
|
253
263
|
}
|
254
264
|
|
255
|
-
template <typename SyncReadStream, typename DynamicBuffer_v1>
|
256
|
-
std::size_t read_until(SyncReadStream& s,
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
>::type)
|
265
|
+
template <typename SyncReadStream, typename DynamicBuffer_v1, typename Traits>
|
266
|
+
std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers,
|
267
|
+
const boost::basic_regex<char, Traits>& expr, boost::system::error_code& ec,
|
268
|
+
constraint_t<
|
269
|
+
is_dynamic_buffer_v1<decay_t<DynamicBuffer_v1>>::value
|
270
|
+
>,
|
271
|
+
constraint_t<
|
272
|
+
!is_dynamic_buffer_v2<decay_t<DynamicBuffer_v1>>::value
|
273
|
+
>)
|
265
274
|
{
|
266
|
-
|
267
|
-
|
275
|
+
decay_t<DynamicBuffer_v1> b(
|
276
|
+
static_cast<DynamicBuffer_v1&&>(buffers));
|
268
277
|
|
269
278
|
std::size_t search_position = 0;
|
270
279
|
for (;;)
|
@@ -279,10 +288,10 @@ std::size_t read_until(SyncReadStream& s,
|
|
279
288
|
|
280
289
|
// Look for a match.
|
281
290
|
boost::match_results<iterator,
|
282
|
-
typename std::vector<boost::sub_match<iterator
|
291
|
+
typename std::vector<boost::sub_match<iterator>>::allocator_type>
|
283
292
|
match_results;
|
284
|
-
if (regex_search(start_pos, end, match_results,
|
285
|
-
|
293
|
+
if (regex_search(start_pos, end, match_results,
|
294
|
+
expr, detail::regex_match_flags()))
|
286
295
|
{
|
287
296
|
if (match_results[0].matched)
|
288
297
|
{
|
@@ -324,21 +333,21 @@ std::size_t read_until(SyncReadStream& s,
|
|
324
333
|
template <typename SyncReadStream,
|
325
334
|
typename DynamicBuffer_v1, typename MatchCondition>
|
326
335
|
inline std::size_t read_until(SyncReadStream& s,
|
327
|
-
|
336
|
+
DynamicBuffer_v1&& buffers,
|
328
337
|
MatchCondition match_condition,
|
329
|
-
|
338
|
+
constraint_t<
|
330
339
|
is_match_condition<MatchCondition>::value
|
331
|
-
|
332
|
-
|
333
|
-
is_dynamic_buffer_v1<
|
334
|
-
|
335
|
-
|
336
|
-
!is_dynamic_buffer_v2<
|
337
|
-
|
340
|
+
>,
|
341
|
+
constraint_t<
|
342
|
+
is_dynamic_buffer_v1<decay_t<DynamicBuffer_v1>>::value
|
343
|
+
>,
|
344
|
+
constraint_t<
|
345
|
+
!is_dynamic_buffer_v2<decay_t<DynamicBuffer_v1>>::value
|
346
|
+
>)
|
338
347
|
{
|
339
348
|
boost::system::error_code ec;
|
340
349
|
std::size_t bytes_transferred = read_until(s,
|
341
|
-
|
350
|
+
static_cast<DynamicBuffer_v1&&>(buffers),
|
342
351
|
match_condition, ec);
|
343
352
|
boost::asio::detail::throw_error(ec, "read_until");
|
344
353
|
return bytes_transferred;
|
@@ -347,20 +356,20 @@ inline std::size_t read_until(SyncReadStream& s,
|
|
347
356
|
template <typename SyncReadStream,
|
348
357
|
typename DynamicBuffer_v1, typename MatchCondition>
|
349
358
|
std::size_t read_until(SyncReadStream& s,
|
350
|
-
|
359
|
+
DynamicBuffer_v1&& buffers,
|
351
360
|
MatchCondition match_condition, boost::system::error_code& ec,
|
352
|
-
|
361
|
+
constraint_t<
|
353
362
|
is_match_condition<MatchCondition>::value
|
354
|
-
|
355
|
-
|
356
|
-
is_dynamic_buffer_v1<
|
357
|
-
|
358
|
-
|
359
|
-
!is_dynamic_buffer_v2<
|
360
|
-
|
363
|
+
>,
|
364
|
+
constraint_t<
|
365
|
+
is_dynamic_buffer_v1<decay_t<DynamicBuffer_v1>>::value
|
366
|
+
>,
|
367
|
+
constraint_t<
|
368
|
+
!is_dynamic_buffer_v2<decay_t<DynamicBuffer_v1>>::value
|
369
|
+
>)
|
361
370
|
{
|
362
|
-
|
363
|
-
|
371
|
+
decay_t<DynamicBuffer_v1> b(
|
372
|
+
static_cast<DynamicBuffer_v1&&>(buffers));
|
364
373
|
|
365
374
|
std::size_t search_position = 0;
|
366
375
|
for (;;)
|
@@ -444,16 +453,18 @@ inline std::size_t read_until(SyncReadStream& s,
|
|
444
453
|
|
445
454
|
#if defined(BOOST_ASIO_HAS_BOOST_REGEX)
|
446
455
|
|
447
|
-
template <typename SyncReadStream, typename Allocator>
|
456
|
+
template <typename SyncReadStream, typename Allocator, typename Traits>
|
448
457
|
inline std::size_t read_until(SyncReadStream& s,
|
449
|
-
boost::asio::basic_streambuf<Allocator>& b,
|
458
|
+
boost::asio::basic_streambuf<Allocator>& b,
|
459
|
+
const boost::basic_regex<char, Traits>& expr)
|
450
460
|
{
|
451
461
|
return read_until(s, basic_streambuf_ref<Allocator>(b), expr);
|
452
462
|
}
|
453
463
|
|
454
|
-
template <typename SyncReadStream, typename Allocator>
|
464
|
+
template <typename SyncReadStream, typename Allocator, typename Traits>
|
455
465
|
inline std::size_t read_until(SyncReadStream& s,
|
456
|
-
boost::asio::basic_streambuf<Allocator>& b,
|
466
|
+
boost::asio::basic_streambuf<Allocator>& b,
|
467
|
+
const boost::basic_regex<char, Traits>& expr,
|
457
468
|
boost::system::error_code& ec)
|
458
469
|
{
|
459
470
|
return read_until(s, basic_streambuf_ref<Allocator>(b), expr, ec);
|
@@ -464,7 +475,7 @@ inline std::size_t read_until(SyncReadStream& s,
|
|
464
475
|
template <typename SyncReadStream, typename Allocator, typename MatchCondition>
|
465
476
|
inline std::size_t read_until(SyncReadStream& s,
|
466
477
|
boost::asio::basic_streambuf<Allocator>& b, MatchCondition match_condition,
|
467
|
-
|
478
|
+
constraint_t<is_match_condition<MatchCondition>::value>)
|
468
479
|
{
|
469
480
|
return read_until(s, basic_streambuf_ref<Allocator>(b), match_condition);
|
470
481
|
}
|
@@ -473,7 +484,7 @@ template <typename SyncReadStream, typename Allocator, typename MatchCondition>
|
|
473
484
|
inline std::size_t read_until(SyncReadStream& s,
|
474
485
|
boost::asio::basic_streambuf<Allocator>& b,
|
475
486
|
MatchCondition match_condition, boost::system::error_code& ec,
|
476
|
-
|
487
|
+
constraint_t<is_match_condition<MatchCondition>::value>)
|
477
488
|
{
|
478
489
|
return read_until(s, basic_streambuf_ref<Allocator>(b), match_condition, ec);
|
479
490
|
}
|
@@ -485,13 +496,13 @@ inline std::size_t read_until(SyncReadStream& s,
|
|
485
496
|
template <typename SyncReadStream, typename DynamicBuffer_v2>
|
486
497
|
inline std::size_t read_until(SyncReadStream& s,
|
487
498
|
DynamicBuffer_v2 buffers, char delim,
|
488
|
-
|
499
|
+
constraint_t<
|
489
500
|
is_dynamic_buffer_v2<DynamicBuffer_v2>::value
|
490
|
-
|
501
|
+
>)
|
491
502
|
{
|
492
503
|
boost::system::error_code ec;
|
493
504
|
std::size_t bytes_transferred = read_until(s,
|
494
|
-
|
505
|
+
static_cast<DynamicBuffer_v2&&>(buffers), delim, ec);
|
495
506
|
boost::asio::detail::throw_error(ec, "read_until");
|
496
507
|
return bytes_transferred;
|
497
508
|
}
|
@@ -499,9 +510,9 @@ inline std::size_t read_until(SyncReadStream& s,
|
|
499
510
|
template <typename SyncReadStream, typename DynamicBuffer_v2>
|
500
511
|
std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers,
|
501
512
|
char delim, boost::system::error_code& ec,
|
502
|
-
|
513
|
+
constraint_t<
|
503
514
|
is_dynamic_buffer_v2<DynamicBuffer_v2>::value
|
504
|
-
|
515
|
+
>)
|
505
516
|
{
|
506
517
|
DynamicBuffer_v2& b = buffers;
|
507
518
|
|
@@ -554,13 +565,13 @@ std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers,
|
|
554
565
|
template <typename SyncReadStream, typename DynamicBuffer_v2>
|
555
566
|
inline std::size_t read_until(SyncReadStream& s,
|
556
567
|
DynamicBuffer_v2 buffers, BOOST_ASIO_STRING_VIEW_PARAM delim,
|
557
|
-
|
568
|
+
constraint_t<
|
558
569
|
is_dynamic_buffer_v2<DynamicBuffer_v2>::value
|
559
|
-
|
570
|
+
>)
|
560
571
|
{
|
561
572
|
boost::system::error_code ec;
|
562
573
|
std::size_t bytes_transferred = read_until(s,
|
563
|
-
|
574
|
+
static_cast<DynamicBuffer_v2&&>(buffers), delim, ec);
|
564
575
|
boost::asio::detail::throw_error(ec, "read_until");
|
565
576
|
return bytes_transferred;
|
566
577
|
}
|
@@ -568,9 +579,9 @@ inline std::size_t read_until(SyncReadStream& s,
|
|
568
579
|
template <typename SyncReadStream, typename DynamicBuffer_v2>
|
569
580
|
std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers,
|
570
581
|
BOOST_ASIO_STRING_VIEW_PARAM delim, boost::system::error_code& ec,
|
571
|
-
|
582
|
+
constraint_t<
|
572
583
|
is_dynamic_buffer_v2<DynamicBuffer_v2>::value
|
573
|
-
|
584
|
+
>)
|
574
585
|
{
|
575
586
|
DynamicBuffer_v2& b = buffers;
|
576
587
|
|
@@ -632,26 +643,26 @@ std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers,
|
|
632
643
|
#if !defined(BOOST_ASIO_NO_EXTENSIONS)
|
633
644
|
#if defined(BOOST_ASIO_HAS_BOOST_REGEX)
|
634
645
|
|
635
|
-
template <typename SyncReadStream, typename DynamicBuffer_v2>
|
636
|
-
inline std::size_t read_until(SyncReadStream& s,
|
637
|
-
|
638
|
-
|
646
|
+
template <typename SyncReadStream, typename DynamicBuffer_v2, typename Traits>
|
647
|
+
inline std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers,
|
648
|
+
const boost::basic_regex<char, Traits>& expr,
|
649
|
+
constraint_t<
|
639
650
|
is_dynamic_buffer_v2<DynamicBuffer_v2>::value
|
640
|
-
|
651
|
+
>)
|
641
652
|
{
|
642
653
|
boost::system::error_code ec;
|
643
654
|
std::size_t bytes_transferred = read_until(s,
|
644
|
-
|
655
|
+
static_cast<DynamicBuffer_v2&&>(buffers), expr, ec);
|
645
656
|
boost::asio::detail::throw_error(ec, "read_until");
|
646
657
|
return bytes_transferred;
|
647
658
|
}
|
648
659
|
|
649
|
-
template <typename SyncReadStream, typename DynamicBuffer_v2>
|
660
|
+
template <typename SyncReadStream, typename DynamicBuffer_v2, typename Traits>
|
650
661
|
std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers,
|
651
|
-
const boost::
|
652
|
-
|
662
|
+
const boost::basic_regex<char, Traits>& expr, boost::system::error_code& ec,
|
663
|
+
constraint_t<
|
653
664
|
is_dynamic_buffer_v2<DynamicBuffer_v2>::value
|
654
|
-
|
665
|
+
>)
|
655
666
|
{
|
656
667
|
DynamicBuffer_v2& b = buffers;
|
657
668
|
|
@@ -669,10 +680,10 @@ std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers,
|
|
669
680
|
|
670
681
|
// Look for a match.
|
671
682
|
boost::match_results<iterator,
|
672
|
-
typename std::vector<boost::sub_match<iterator
|
683
|
+
typename std::vector<boost::sub_match<iterator>>::allocator_type>
|
673
684
|
match_results;
|
674
|
-
if (regex_search(start_pos, end, match_results,
|
675
|
-
|
685
|
+
if (regex_search(start_pos, end, match_results,
|
686
|
+
expr, detail::regex_match_flags()))
|
676
687
|
{
|
677
688
|
if (match_results[0].matched)
|
678
689
|
{
|
@@ -718,16 +729,16 @@ template <typename SyncReadStream,
|
|
718
729
|
typename DynamicBuffer_v2, typename MatchCondition>
|
719
730
|
inline std::size_t read_until(SyncReadStream& s,
|
720
731
|
DynamicBuffer_v2 buffers, MatchCondition match_condition,
|
721
|
-
|
732
|
+
constraint_t<
|
722
733
|
is_match_condition<MatchCondition>::value
|
723
|
-
|
724
|
-
|
734
|
+
>,
|
735
|
+
constraint_t<
|
725
736
|
is_dynamic_buffer_v2<DynamicBuffer_v2>::value
|
726
|
-
|
737
|
+
>)
|
727
738
|
{
|
728
739
|
boost::system::error_code ec;
|
729
740
|
std::size_t bytes_transferred = read_until(s,
|
730
|
-
|
741
|
+
static_cast<DynamicBuffer_v2&&>(buffers),
|
731
742
|
match_condition, ec);
|
732
743
|
boost::asio::detail::throw_error(ec, "read_until");
|
733
744
|
return bytes_transferred;
|
@@ -737,12 +748,12 @@ template <typename SyncReadStream,
|
|
737
748
|
typename DynamicBuffer_v2, typename MatchCondition>
|
738
749
|
std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers,
|
739
750
|
MatchCondition match_condition, boost::system::error_code& ec,
|
740
|
-
|
751
|
+
constraint_t<
|
741
752
|
is_match_condition<MatchCondition>::value
|
742
|
-
|
743
|
-
|
753
|
+
>,
|
754
|
+
constraint_t<
|
744
755
|
is_dynamic_buffer_v2<DynamicBuffer_v2>::value
|
745
|
-
|
756
|
+
>)
|
746
757
|
{
|
747
758
|
DynamicBuffer_v2& b = buffers;
|
748
759
|
|
@@ -811,20 +822,19 @@ namespace detail
|
|
811
822
|
public:
|
812
823
|
template <typename BufferSequence>
|
813
824
|
read_until_delim_op_v1(AsyncReadStream& stream,
|
814
|
-
|
825
|
+
BufferSequence&& buffers,
|
815
826
|
char delim, ReadHandler& handler)
|
816
827
|
: base_from_cancellation_state<ReadHandler>(
|
817
828
|
handler, enable_partial_cancellation()),
|
818
829
|
stream_(stream),
|
819
|
-
buffers_(
|
830
|
+
buffers_(static_cast<BufferSequence&&>(buffers)),
|
820
831
|
delim_(delim),
|
821
832
|
start_(0),
|
822
833
|
search_position_(0),
|
823
|
-
handler_(
|
834
|
+
handler_(static_cast<ReadHandler&&>(handler))
|
824
835
|
{
|
825
836
|
}
|
826
837
|
|
827
|
-
#if defined(BOOST_ASIO_HAS_MOVE)
|
828
838
|
read_until_delim_op_v1(const read_until_delim_op_v1& other)
|
829
839
|
: base_from_cancellation_state<ReadHandler>(other),
|
830
840
|
stream_(other.stream_),
|
@@ -838,17 +848,15 @@ namespace detail
|
|
838
848
|
|
839
849
|
read_until_delim_op_v1(read_until_delim_op_v1&& other)
|
840
850
|
: base_from_cancellation_state<ReadHandler>(
|
841
|
-
|
842
|
-
ReadHandler>)(other)),
|
851
|
+
static_cast<base_from_cancellation_state<ReadHandler>&&>(other)),
|
843
852
|
stream_(other.stream_),
|
844
|
-
buffers_(
|
853
|
+
buffers_(static_cast<DynamicBuffer_v1&&>(other.buffers_)),
|
845
854
|
delim_(other.delim_),
|
846
855
|
start_(other.start_),
|
847
856
|
search_position_(other.search_position_),
|
848
|
-
handler_(
|
857
|
+
handler_(static_cast<ReadHandler&&>(other.handler_))
|
849
858
|
{
|
850
859
|
}
|
851
|
-
#endif // defined(BOOST_ASIO_HAS_MOVE)
|
852
860
|
|
853
861
|
void operator()(boost::system::error_code ec,
|
854
862
|
std::size_t bytes_transferred, int start = 0)
|
@@ -908,7 +916,7 @@ namespace detail
|
|
908
916
|
BOOST_ASIO_HANDLER_LOCATION((
|
909
917
|
__FILE__, __LINE__, "async_read_until"));
|
910
918
|
stream_.async_read_some(buffers_.prepare(bytes_to_read),
|
911
|
-
|
919
|
+
static_cast<read_until_delim_op_v1&&>(*this));
|
912
920
|
}
|
913
921
|
return; default:
|
914
922
|
buffers_.commit(bytes_transferred);
|
@@ -929,7 +937,7 @@ namespace detail
|
|
929
937
|
(ec || search_position_ == not_found)
|
930
938
|
? 0 : search_position_;
|
931
939
|
|
932
|
-
|
940
|
+
static_cast<ReadHandler&&>(handler_)(result_ec, result_n);
|
933
941
|
}
|
934
942
|
}
|
935
943
|
|
@@ -942,36 +950,6 @@ namespace detail
|
|
942
950
|
ReadHandler handler_;
|
943
951
|
};
|
944
952
|
|
945
|
-
template <typename AsyncReadStream,
|
946
|
-
typename DynamicBuffer_v1, typename ReadHandler>
|
947
|
-
inline asio_handler_allocate_is_deprecated
|
948
|
-
asio_handler_allocate(std::size_t size,
|
949
|
-
read_until_delim_op_v1<AsyncReadStream,
|
950
|
-
DynamicBuffer_v1, ReadHandler>* this_handler)
|
951
|
-
{
|
952
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
953
|
-
boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_);
|
954
|
-
return asio_handler_allocate_is_no_longer_used();
|
955
|
-
#else // defined(BOOST_ASIO_NO_DEPRECATED)
|
956
|
-
return boost_asio_handler_alloc_helpers::allocate(
|
957
|
-
size, this_handler->handler_);
|
958
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
959
|
-
}
|
960
|
-
|
961
|
-
template <typename AsyncReadStream,
|
962
|
-
typename DynamicBuffer_v1, typename ReadHandler>
|
963
|
-
inline asio_handler_deallocate_is_deprecated
|
964
|
-
asio_handler_deallocate(void* pointer, std::size_t size,
|
965
|
-
read_until_delim_op_v1<AsyncReadStream,
|
966
|
-
DynamicBuffer_v1, ReadHandler>* this_handler)
|
967
|
-
{
|
968
|
-
boost_asio_handler_alloc_helpers::deallocate(
|
969
|
-
pointer, size, this_handler->handler_);
|
970
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
971
|
-
return asio_handler_deallocate_is_no_longer_used();
|
972
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
973
|
-
}
|
974
|
-
|
975
953
|
template <typename AsyncReadStream,
|
976
954
|
typename DynamicBuffer_v1, typename ReadHandler>
|
977
955
|
inline bool asio_handler_is_continuation(
|
@@ -983,34 +961,6 @@ namespace detail
|
|
983
961
|
this_handler->handler_);
|
984
962
|
}
|
985
963
|
|
986
|
-
template <typename Function, typename AsyncReadStream,
|
987
|
-
typename DynamicBuffer_v1, typename ReadHandler>
|
988
|
-
inline asio_handler_invoke_is_deprecated
|
989
|
-
asio_handler_invoke(Function& function,
|
990
|
-
read_until_delim_op_v1<AsyncReadStream,
|
991
|
-
DynamicBuffer_v1, ReadHandler>* this_handler)
|
992
|
-
{
|
993
|
-
boost_asio_handler_invoke_helpers::invoke(
|
994
|
-
function, this_handler->handler_);
|
995
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
996
|
-
return asio_handler_invoke_is_no_longer_used();
|
997
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
998
|
-
}
|
999
|
-
|
1000
|
-
template <typename Function, typename AsyncReadStream,
|
1001
|
-
typename DynamicBuffer_v1, typename ReadHandler>
|
1002
|
-
inline asio_handler_invoke_is_deprecated
|
1003
|
-
asio_handler_invoke(const Function& function,
|
1004
|
-
read_until_delim_op_v1<AsyncReadStream,
|
1005
|
-
DynamicBuffer_v1, ReadHandler>* this_handler)
|
1006
|
-
{
|
1007
|
-
boost_asio_handler_invoke_helpers::invoke(
|
1008
|
-
function, this_handler->handler_);
|
1009
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
1010
|
-
return asio_handler_invoke_is_no_longer_used();
|
1011
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
1012
|
-
}
|
1013
|
-
|
1014
964
|
template <typename AsyncReadStream>
|
1015
965
|
class initiate_async_read_until_delim_v1
|
1016
966
|
{
|
@@ -1022,14 +972,14 @@ namespace detail
|
|
1022
972
|
{
|
1023
973
|
}
|
1024
974
|
|
1025
|
-
executor_type get_executor() const
|
975
|
+
executor_type get_executor() const noexcept
|
1026
976
|
{
|
1027
977
|
return stream_.get_executor();
|
1028
978
|
}
|
1029
979
|
|
1030
980
|
template <typename ReadHandler, typename DynamicBuffer_v1>
|
1031
|
-
void operator()(
|
1032
|
-
|
981
|
+
void operator()(ReadHandler&& handler,
|
982
|
+
DynamicBuffer_v1&& buffers,
|
1033
983
|
char delim) const
|
1034
984
|
{
|
1035
985
|
// If you get an error on the following line it means that your handler
|
@@ -1038,9 +988,9 @@ namespace detail
|
|
1038
988
|
|
1039
989
|
non_const_lvalue<ReadHandler> handler2(handler);
|
1040
990
|
read_until_delim_op_v1<AsyncReadStream,
|
1041
|
-
|
1042
|
-
|
1043
|
-
stream_,
|
991
|
+
decay_t<DynamicBuffer_v1>,
|
992
|
+
decay_t<ReadHandler>>(
|
993
|
+
stream_, static_cast<DynamicBuffer_v1&&>(buffers),
|
1044
994
|
delim, handler2.value)(boost::system::error_code(), 0, 1);
|
1045
995
|
}
|
1046
996
|
|
@@ -1060,20 +1010,18 @@ struct associator<Associator,
|
|
1060
1010
|
DefaultCandidate>
|
1061
1011
|
: Associator<ReadHandler, DefaultCandidate>
|
1062
1012
|
{
|
1063
|
-
static typename Associator<ReadHandler, DefaultCandidate>::type
|
1064
|
-
|
1065
|
-
DynamicBuffer_v1, ReadHandler>& h)
|
1013
|
+
static typename Associator<ReadHandler, DefaultCandidate>::type get(
|
1014
|
+
const detail::read_until_delim_op_v1<AsyncReadStream,
|
1015
|
+
DynamicBuffer_v1, ReadHandler>& h) noexcept
|
1066
1016
|
{
|
1067
1017
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_);
|
1068
1018
|
}
|
1069
1019
|
|
1070
|
-
static
|
1071
|
-
|
1072
|
-
get(const detail::read_until_delim_op_v1<AsyncReadStream,
|
1020
|
+
static auto get(
|
1021
|
+
const detail::read_until_delim_op_v1<AsyncReadStream,
|
1073
1022
|
DynamicBuffer_v1, ReadHandler>& h,
|
1074
|
-
const DefaultCandidate& c)
|
1075
|
-
|
1076
|
-
Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)))
|
1023
|
+
const DefaultCandidate& c) noexcept
|
1024
|
+
-> decltype(Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c))
|
1077
1025
|
{
|
1078
1026
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
|
1079
1027
|
}
|
@@ -1084,27 +1032,24 @@ struct associator<Associator,
|
|
1084
1032
|
template <typename AsyncReadStream, typename DynamicBuffer_v1,
|
1085
1033
|
BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
|
1086
1034
|
std::size_t)) ReadToken>
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
!is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value
|
1097
|
-
>::type)
|
1098
|
-
BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
|
1035
|
+
inline auto async_read_until(AsyncReadStream& s,
|
1036
|
+
DynamicBuffer_v1&& buffers, char delim, ReadToken&& token,
|
1037
|
+
constraint_t<
|
1038
|
+
is_dynamic_buffer_v1<decay_t<DynamicBuffer_v1>>::value
|
1039
|
+
>,
|
1040
|
+
constraint_t<
|
1041
|
+
!is_dynamic_buffer_v2<decay_t<DynamicBuffer_v1>>::value
|
1042
|
+
>)
|
1043
|
+
-> decltype(
|
1099
1044
|
async_initiate<ReadToken,
|
1100
1045
|
void (boost::system::error_code, std::size_t)>(
|
1101
|
-
declval<detail::initiate_async_read_until_delim_v1<AsyncReadStream
|
1102
|
-
token,
|
1046
|
+
declval<detail::initiate_async_read_until_delim_v1<AsyncReadStream>>(),
|
1047
|
+
token, static_cast<DynamicBuffer_v1&&>(buffers), delim))
|
1103
1048
|
{
|
1104
1049
|
return async_initiate<ReadToken,
|
1105
1050
|
void (boost::system::error_code, std::size_t)>(
|
1106
1051
|
detail::initiate_async_read_until_delim_v1<AsyncReadStream>(s),
|
1107
|
-
token,
|
1052
|
+
token, static_cast<DynamicBuffer_v1&&>(buffers), delim);
|
1108
1053
|
}
|
1109
1054
|
|
1110
1055
|
namespace detail
|
@@ -1117,20 +1062,19 @@ namespace detail
|
|
1117
1062
|
public:
|
1118
1063
|
template <typename BufferSequence>
|
1119
1064
|
read_until_delim_string_op_v1(AsyncReadStream& stream,
|
1120
|
-
|
1065
|
+
BufferSequence&& buffers,
|
1121
1066
|
const std::string& delim, ReadHandler& handler)
|
1122
1067
|
: base_from_cancellation_state<ReadHandler>(
|
1123
1068
|
handler, enable_partial_cancellation()),
|
1124
1069
|
stream_(stream),
|
1125
|
-
buffers_(
|
1070
|
+
buffers_(static_cast<BufferSequence&&>(buffers)),
|
1126
1071
|
delim_(delim),
|
1127
1072
|
start_(0),
|
1128
1073
|
search_position_(0),
|
1129
|
-
handler_(
|
1074
|
+
handler_(static_cast<ReadHandler&&>(handler))
|
1130
1075
|
{
|
1131
1076
|
}
|
1132
1077
|
|
1133
|
-
#if defined(BOOST_ASIO_HAS_MOVE)
|
1134
1078
|
read_until_delim_string_op_v1(const read_until_delim_string_op_v1& other)
|
1135
1079
|
: base_from_cancellation_state<ReadHandler>(other),
|
1136
1080
|
stream_(other.stream_),
|
@@ -1144,17 +1088,15 @@ namespace detail
|
|
1144
1088
|
|
1145
1089
|
read_until_delim_string_op_v1(read_until_delim_string_op_v1&& other)
|
1146
1090
|
: base_from_cancellation_state<ReadHandler>(
|
1147
|
-
|
1148
|
-
ReadHandler>)(other)),
|
1091
|
+
static_cast<base_from_cancellation_state<ReadHandler>&&>(other)),
|
1149
1092
|
stream_(other.stream_),
|
1150
|
-
buffers_(
|
1151
|
-
delim_(
|
1093
|
+
buffers_(static_cast<DynamicBuffer_v1&&>(other.buffers_)),
|
1094
|
+
delim_(static_cast<std::string&&>(other.delim_)),
|
1152
1095
|
start_(other.start_),
|
1153
1096
|
search_position_(other.search_position_),
|
1154
|
-
handler_(
|
1097
|
+
handler_(static_cast<ReadHandler&&>(other.handler_))
|
1155
1098
|
{
|
1156
1099
|
}
|
1157
|
-
#endif // defined(BOOST_ASIO_HAS_MOVE)
|
1158
1100
|
|
1159
1101
|
void operator()(boost::system::error_code ec,
|
1160
1102
|
std::size_t bytes_transferred, int start = 0)
|
@@ -1225,7 +1167,7 @@ namespace detail
|
|
1225
1167
|
BOOST_ASIO_HANDLER_LOCATION((
|
1226
1168
|
__FILE__, __LINE__, "async_read_until"));
|
1227
1169
|
stream_.async_read_some(buffers_.prepare(bytes_to_read),
|
1228
|
-
|
1170
|
+
static_cast<read_until_delim_string_op_v1&&>(*this));
|
1229
1171
|
}
|
1230
1172
|
return; default:
|
1231
1173
|
buffers_.commit(bytes_transferred);
|
@@ -1246,7 +1188,7 @@ namespace detail
|
|
1246
1188
|
(ec || search_position_ == not_found)
|
1247
1189
|
? 0 : search_position_;
|
1248
1190
|
|
1249
|
-
|
1191
|
+
static_cast<ReadHandler&&>(handler_)(result_ec, result_n);
|
1250
1192
|
}
|
1251
1193
|
}
|
1252
1194
|
|
@@ -1259,36 +1201,6 @@ namespace detail
|
|
1259
1201
|
ReadHandler handler_;
|
1260
1202
|
};
|
1261
1203
|
|
1262
|
-
template <typename AsyncReadStream,
|
1263
|
-
typename DynamicBuffer_v1, typename ReadHandler>
|
1264
|
-
inline asio_handler_allocate_is_deprecated
|
1265
|
-
asio_handler_allocate(std::size_t size,
|
1266
|
-
read_until_delim_string_op_v1<AsyncReadStream,
|
1267
|
-
DynamicBuffer_v1, ReadHandler>* this_handler)
|
1268
|
-
{
|
1269
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
1270
|
-
boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_);
|
1271
|
-
return asio_handler_allocate_is_no_longer_used();
|
1272
|
-
#else // defined(BOOST_ASIO_NO_DEPRECATED)
|
1273
|
-
return boost_asio_handler_alloc_helpers::allocate(
|
1274
|
-
size, this_handler->handler_);
|
1275
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
1276
|
-
}
|
1277
|
-
|
1278
|
-
template <typename AsyncReadStream,
|
1279
|
-
typename DynamicBuffer_v1, typename ReadHandler>
|
1280
|
-
inline asio_handler_deallocate_is_deprecated
|
1281
|
-
asio_handler_deallocate(void* pointer, std::size_t size,
|
1282
|
-
read_until_delim_string_op_v1<AsyncReadStream,
|
1283
|
-
DynamicBuffer_v1, ReadHandler>* this_handler)
|
1284
|
-
{
|
1285
|
-
boost_asio_handler_alloc_helpers::deallocate(
|
1286
|
-
pointer, size, this_handler->handler_);
|
1287
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
1288
|
-
return asio_handler_deallocate_is_no_longer_used();
|
1289
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
1290
|
-
}
|
1291
|
-
|
1292
1204
|
template <typename AsyncReadStream,
|
1293
1205
|
typename DynamicBuffer_v1, typename ReadHandler>
|
1294
1206
|
inline bool asio_handler_is_continuation(
|
@@ -1300,34 +1212,6 @@ namespace detail
|
|
1300
1212
|
this_handler->handler_);
|
1301
1213
|
}
|
1302
1214
|
|
1303
|
-
template <typename Function, typename AsyncReadStream,
|
1304
|
-
typename DynamicBuffer_v1, typename ReadHandler>
|
1305
|
-
inline asio_handler_invoke_is_deprecated
|
1306
|
-
asio_handler_invoke(Function& function,
|
1307
|
-
read_until_delim_string_op_v1<AsyncReadStream,
|
1308
|
-
DynamicBuffer_v1, ReadHandler>* this_handler)
|
1309
|
-
{
|
1310
|
-
boost_asio_handler_invoke_helpers::invoke(
|
1311
|
-
function, this_handler->handler_);
|
1312
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
1313
|
-
return asio_handler_invoke_is_no_longer_used();
|
1314
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
1315
|
-
}
|
1316
|
-
|
1317
|
-
template <typename Function, typename AsyncReadStream,
|
1318
|
-
typename DynamicBuffer_v1, typename ReadHandler>
|
1319
|
-
inline asio_handler_invoke_is_deprecated
|
1320
|
-
asio_handler_invoke(const Function& function,
|
1321
|
-
read_until_delim_string_op_v1<AsyncReadStream,
|
1322
|
-
DynamicBuffer_v1, ReadHandler>* this_handler)
|
1323
|
-
{
|
1324
|
-
boost_asio_handler_invoke_helpers::invoke(
|
1325
|
-
function, this_handler->handler_);
|
1326
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
1327
|
-
return asio_handler_invoke_is_no_longer_used();
|
1328
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
1329
|
-
}
|
1330
|
-
|
1331
1215
|
template <typename AsyncReadStream>
|
1332
1216
|
class initiate_async_read_until_delim_string_v1
|
1333
1217
|
{
|
@@ -1339,14 +1223,14 @@ namespace detail
|
|
1339
1223
|
{
|
1340
1224
|
}
|
1341
1225
|
|
1342
|
-
executor_type get_executor() const
|
1226
|
+
executor_type get_executor() const noexcept
|
1343
1227
|
{
|
1344
1228
|
return stream_.get_executor();
|
1345
1229
|
}
|
1346
1230
|
|
1347
1231
|
template <typename ReadHandler, typename DynamicBuffer_v1>
|
1348
|
-
void operator()(
|
1349
|
-
|
1232
|
+
void operator()(ReadHandler&& handler,
|
1233
|
+
DynamicBuffer_v1&& buffers,
|
1350
1234
|
const std::string& delim) const
|
1351
1235
|
{
|
1352
1236
|
// If you get an error on the following line it means that your handler
|
@@ -1355,9 +1239,9 @@ namespace detail
|
|
1355
1239
|
|
1356
1240
|
non_const_lvalue<ReadHandler> handler2(handler);
|
1357
1241
|
read_until_delim_string_op_v1<AsyncReadStream,
|
1358
|
-
|
1359
|
-
|
1360
|
-
stream_,
|
1242
|
+
decay_t<DynamicBuffer_v1>,
|
1243
|
+
decay_t<ReadHandler>>(
|
1244
|
+
stream_, static_cast<DynamicBuffer_v1&&>(buffers),
|
1361
1245
|
delim, handler2.value)(boost::system::error_code(), 0, 1);
|
1362
1246
|
}
|
1363
1247
|
|
@@ -1377,20 +1261,18 @@ struct associator<Associator,
|
|
1377
1261
|
DefaultCandidate>
|
1378
1262
|
: Associator<ReadHandler, DefaultCandidate>
|
1379
1263
|
{
|
1380
|
-
static typename Associator<ReadHandler, DefaultCandidate>::type
|
1381
|
-
|
1382
|
-
DynamicBuffer_v1, ReadHandler>& h)
|
1264
|
+
static typename Associator<ReadHandler, DefaultCandidate>::type get(
|
1265
|
+
const detail::read_until_delim_string_op_v1<
|
1266
|
+
AsyncReadStream, DynamicBuffer_v1, ReadHandler>& h) noexcept
|
1383
1267
|
{
|
1384
1268
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_);
|
1385
1269
|
}
|
1386
1270
|
|
1387
|
-
static
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
|
1393
|
-
Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)))
|
1271
|
+
static auto get(
|
1272
|
+
const detail::read_until_delim_string_op_v1<
|
1273
|
+
AsyncReadStream, DynamicBuffer_v1, ReadHandler>& h,
|
1274
|
+
const DefaultCandidate& c) noexcept
|
1275
|
+
-> decltype(Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c))
|
1394
1276
|
{
|
1395
1277
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
|
1396
1278
|
}
|
@@ -1401,30 +1283,26 @@ struct associator<Associator,
|
|
1401
1283
|
template <typename AsyncReadStream, typename DynamicBuffer_v1,
|
1402
1284
|
BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
|
1403
1285
|
std::size_t)) ReadToken>
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1412
|
-
|
1413
|
-
typename constraint<
|
1414
|
-
!is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value
|
1415
|
-
>::type)
|
1416
|
-
BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
|
1286
|
+
inline auto async_read_until(AsyncReadStream& s, DynamicBuffer_v1&& buffers,
|
1287
|
+
BOOST_ASIO_STRING_VIEW_PARAM delim, ReadToken&& token,
|
1288
|
+
constraint_t<
|
1289
|
+
is_dynamic_buffer_v1<decay_t<DynamicBuffer_v1>>::value
|
1290
|
+
>,
|
1291
|
+
constraint_t<
|
1292
|
+
!is_dynamic_buffer_v2<decay_t<DynamicBuffer_v1>>::value
|
1293
|
+
>)
|
1294
|
+
-> decltype(
|
1417
1295
|
async_initiate<ReadToken,
|
1418
1296
|
void (boost::system::error_code, std::size_t)>(
|
1419
1297
|
declval<detail::initiate_async_read_until_delim_string_v1<
|
1420
|
-
AsyncReadStream
|
1421
|
-
token,
|
1422
|
-
static_cast<std::string>(delim)))
|
1298
|
+
AsyncReadStream>>(),
|
1299
|
+
token, static_cast<DynamicBuffer_v1&&>(buffers),
|
1300
|
+
static_cast<std::string>(delim)))
|
1423
1301
|
{
|
1424
1302
|
return async_initiate<ReadToken,
|
1425
1303
|
void (boost::system::error_code, std::size_t)>(
|
1426
1304
|
detail::initiate_async_read_until_delim_string_v1<AsyncReadStream>(s),
|
1427
|
-
token,
|
1305
|
+
token, static_cast<DynamicBuffer_v1&&>(buffers),
|
1428
1306
|
static_cast<std::string>(delim));
|
1429
1307
|
}
|
1430
1308
|
|
@@ -1439,22 +1317,20 @@ namespace detail
|
|
1439
1317
|
: public base_from_cancellation_state<ReadHandler>
|
1440
1318
|
{
|
1441
1319
|
public:
|
1442
|
-
template <typename BufferSequence>
|
1443
|
-
read_until_expr_op_v1(AsyncReadStream& stream,
|
1444
|
-
|
1445
|
-
const boost::regex& expr, ReadHandler& handler)
|
1320
|
+
template <typename BufferSequence, typename Traits>
|
1321
|
+
read_until_expr_op_v1(AsyncReadStream& stream, BufferSequence&& buffers,
|
1322
|
+
const boost::basic_regex<char, Traits>& expr, ReadHandler& handler)
|
1446
1323
|
: base_from_cancellation_state<ReadHandler>(
|
1447
1324
|
handler, enable_partial_cancellation()),
|
1448
1325
|
stream_(stream),
|
1449
|
-
buffers_(
|
1326
|
+
buffers_(static_cast<BufferSequence&&>(buffers)),
|
1450
1327
|
expr_(expr),
|
1451
1328
|
start_(0),
|
1452
1329
|
search_position_(0),
|
1453
|
-
handler_(
|
1330
|
+
handler_(static_cast<ReadHandler&&>(handler))
|
1454
1331
|
{
|
1455
1332
|
}
|
1456
1333
|
|
1457
|
-
#if defined(BOOST_ASIO_HAS_MOVE)
|
1458
1334
|
read_until_expr_op_v1(const read_until_expr_op_v1& other)
|
1459
1335
|
: base_from_cancellation_state<ReadHandler>(other),
|
1460
1336
|
stream_(other.stream_),
|
@@ -1468,17 +1344,15 @@ namespace detail
|
|
1468
1344
|
|
1469
1345
|
read_until_expr_op_v1(read_until_expr_op_v1&& other)
|
1470
1346
|
: base_from_cancellation_state<ReadHandler>(
|
1471
|
-
|
1472
|
-
ReadHandler>)(other)),
|
1347
|
+
static_cast<base_from_cancellation_state<ReadHandler>&&>(other)),
|
1473
1348
|
stream_(other.stream_),
|
1474
|
-
buffers_(
|
1349
|
+
buffers_(static_cast<DynamicBuffer_v1&&>(other.buffers_)),
|
1475
1350
|
expr_(other.expr_),
|
1476
1351
|
start_(other.start_),
|
1477
1352
|
search_position_(other.search_position_),
|
1478
|
-
handler_(
|
1353
|
+
handler_(static_cast<ReadHandler&&>(other.handler_))
|
1479
1354
|
{
|
1480
1355
|
}
|
1481
|
-
#endif // defined(BOOST_ASIO_HAS_MOVE)
|
1482
1356
|
|
1483
1357
|
void operator()(boost::system::error_code ec,
|
1484
1358
|
std::size_t bytes_transferred, int start = 0)
|
@@ -1502,10 +1376,10 @@ namespace detail
|
|
1502
1376
|
|
1503
1377
|
// Look for a match.
|
1504
1378
|
boost::match_results<iterator,
|
1505
|
-
typename std::vector<boost::sub_match<iterator
|
1379
|
+
typename std::vector<boost::sub_match<iterator>>::allocator_type>
|
1506
1380
|
match_results;
|
1507
|
-
bool match = regex_search(start_pos, end,
|
1508
|
-
|
1381
|
+
bool match = regex_search(start_pos, end,
|
1382
|
+
match_results, expr_, regex_match_flags());
|
1509
1383
|
if (match && match_results[0].matched)
|
1510
1384
|
{
|
1511
1385
|
// Full match. We're done.
|
@@ -1552,7 +1426,7 @@ namespace detail
|
|
1552
1426
|
BOOST_ASIO_HANDLER_LOCATION((
|
1553
1427
|
__FILE__, __LINE__, "async_read_until"));
|
1554
1428
|
stream_.async_read_some(buffers_.prepare(bytes_to_read),
|
1555
|
-
|
1429
|
+
static_cast<read_until_expr_op_v1&&>(*this));
|
1556
1430
|
}
|
1557
1431
|
return; default:
|
1558
1432
|
buffers_.commit(bytes_transferred);
|
@@ -1573,7 +1447,7 @@ namespace detail
|
|
1573
1447
|
(ec || search_position_ == not_found)
|
1574
1448
|
? 0 : search_position_;
|
1575
1449
|
|
1576
|
-
|
1450
|
+
static_cast<ReadHandler&&>(handler_)(result_ec, result_n);
|
1577
1451
|
}
|
1578
1452
|
}
|
1579
1453
|
|
@@ -1586,36 +1460,6 @@ namespace detail
|
|
1586
1460
|
ReadHandler handler_;
|
1587
1461
|
};
|
1588
1462
|
|
1589
|
-
template <typename AsyncReadStream, typename DynamicBuffer_v1,
|
1590
|
-
typename RegEx, typename ReadHandler>
|
1591
|
-
inline asio_handler_allocate_is_deprecated
|
1592
|
-
asio_handler_allocate(std::size_t size,
|
1593
|
-
read_until_expr_op_v1<AsyncReadStream,
|
1594
|
-
DynamicBuffer_v1, RegEx, ReadHandler>* this_handler)
|
1595
|
-
{
|
1596
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
1597
|
-
boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_);
|
1598
|
-
return asio_handler_allocate_is_no_longer_used();
|
1599
|
-
#else // defined(BOOST_ASIO_NO_DEPRECATED)
|
1600
|
-
return boost_asio_handler_alloc_helpers::allocate(
|
1601
|
-
size, this_handler->handler_);
|
1602
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
1603
|
-
}
|
1604
|
-
|
1605
|
-
template <typename AsyncReadStream, typename DynamicBuffer_v1,
|
1606
|
-
typename RegEx, typename ReadHandler>
|
1607
|
-
inline asio_handler_deallocate_is_deprecated
|
1608
|
-
asio_handler_deallocate(void* pointer, std::size_t size,
|
1609
|
-
read_until_expr_op_v1<AsyncReadStream,
|
1610
|
-
DynamicBuffer_v1, RegEx, ReadHandler>* this_handler)
|
1611
|
-
{
|
1612
|
-
boost_asio_handler_alloc_helpers::deallocate(
|
1613
|
-
pointer, size, this_handler->handler_);
|
1614
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
1615
|
-
return asio_handler_deallocate_is_no_longer_used();
|
1616
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
1617
|
-
}
|
1618
|
-
|
1619
1463
|
template <typename AsyncReadStream, typename DynamicBuffer_v1,
|
1620
1464
|
typename RegEx, typename ReadHandler>
|
1621
1465
|
inline bool asio_handler_is_continuation(
|
@@ -1627,34 +1471,6 @@ namespace detail
|
|
1627
1471
|
this_handler->handler_);
|
1628
1472
|
}
|
1629
1473
|
|
1630
|
-
template <typename Function, typename AsyncReadStream,
|
1631
|
-
typename DynamicBuffer_v1, typename RegEx, typename ReadHandler>
|
1632
|
-
inline asio_handler_invoke_is_deprecated
|
1633
|
-
asio_handler_invoke(Function& function,
|
1634
|
-
read_until_expr_op_v1<AsyncReadStream,
|
1635
|
-
DynamicBuffer_v1, RegEx, ReadHandler>* this_handler)
|
1636
|
-
{
|
1637
|
-
boost_asio_handler_invoke_helpers::invoke(
|
1638
|
-
function, this_handler->handler_);
|
1639
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
1640
|
-
return asio_handler_invoke_is_no_longer_used();
|
1641
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
1642
|
-
}
|
1643
|
-
|
1644
|
-
template <typename Function, typename AsyncReadStream,
|
1645
|
-
typename DynamicBuffer_v1, typename RegEx, typename ReadHandler>
|
1646
|
-
inline asio_handler_invoke_is_deprecated
|
1647
|
-
asio_handler_invoke(const Function& function,
|
1648
|
-
read_until_expr_op_v1<AsyncReadStream,
|
1649
|
-
DynamicBuffer_v1, RegEx, ReadHandler>* this_handler)
|
1650
|
-
{
|
1651
|
-
boost_asio_handler_invoke_helpers::invoke(
|
1652
|
-
function, this_handler->handler_);
|
1653
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
1654
|
-
return asio_handler_invoke_is_no_longer_used();
|
1655
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
1656
|
-
}
|
1657
|
-
|
1658
1474
|
template <typename AsyncReadStream>
|
1659
1475
|
class initiate_async_read_until_expr_v1
|
1660
1476
|
{
|
@@ -1666,14 +1482,14 @@ namespace detail
|
|
1666
1482
|
{
|
1667
1483
|
}
|
1668
1484
|
|
1669
|
-
executor_type get_executor() const
|
1485
|
+
executor_type get_executor() const noexcept
|
1670
1486
|
{
|
1671
1487
|
return stream_.get_executor();
|
1672
1488
|
}
|
1673
1489
|
|
1674
1490
|
template <typename ReadHandler, typename DynamicBuffer_v1, typename RegEx>
|
1675
|
-
void operator()(
|
1676
|
-
|
1491
|
+
void operator()(ReadHandler&& handler,
|
1492
|
+
DynamicBuffer_v1&& buffers, const RegEx& expr) const
|
1677
1493
|
{
|
1678
1494
|
// If you get an error on the following line it means that your handler
|
1679
1495
|
// does not meet the documented type requirements for a ReadHandler.
|
@@ -1681,9 +1497,9 @@ namespace detail
|
|
1681
1497
|
|
1682
1498
|
non_const_lvalue<ReadHandler> handler2(handler);
|
1683
1499
|
read_until_expr_op_v1<AsyncReadStream,
|
1684
|
-
|
1685
|
-
RegEx,
|
1686
|
-
stream_,
|
1500
|
+
decay_t<DynamicBuffer_v1>,
|
1501
|
+
RegEx, decay_t<ReadHandler>>(
|
1502
|
+
stream_, static_cast<DynamicBuffer_v1&&>(buffers),
|
1687
1503
|
expr, handler2.value)(boost::system::error_code(), 0, 1);
|
1688
1504
|
}
|
1689
1505
|
|
@@ -1703,20 +1519,18 @@ struct associator<Associator,
|
|
1703
1519
|
DefaultCandidate>
|
1704
1520
|
: Associator<ReadHandler, DefaultCandidate>
|
1705
1521
|
{
|
1706
|
-
static typename Associator<ReadHandler, DefaultCandidate>::type
|
1707
|
-
|
1708
|
-
DynamicBuffer_v1, RegEx, ReadHandler>& h)
|
1522
|
+
static typename Associator<ReadHandler, DefaultCandidate>::type get(
|
1523
|
+
const detail::read_until_expr_op_v1<AsyncReadStream,
|
1524
|
+
DynamicBuffer_v1, RegEx, ReadHandler>& h) noexcept
|
1709
1525
|
{
|
1710
1526
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_);
|
1711
1527
|
}
|
1712
1528
|
|
1713
|
-
static
|
1714
|
-
|
1715
|
-
get(const detail::read_until_expr_op_v1<AsyncReadStream,
|
1529
|
+
static auto get(
|
1530
|
+
const detail::read_until_expr_op_v1<AsyncReadStream,
|
1716
1531
|
DynamicBuffer_v1, RegEx, ReadHandler>& h,
|
1717
|
-
const DefaultCandidate& c)
|
1718
|
-
|
1719
|
-
Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)))
|
1532
|
+
const DefaultCandidate& c) noexcept
|
1533
|
+
-> decltype(Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c))
|
1720
1534
|
{
|
1721
1535
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
|
1722
1536
|
}
|
@@ -1724,31 +1538,27 @@ struct associator<Associator,
|
|
1724
1538
|
|
1725
1539
|
#endif // !defined(GENERATING_DOCUMENTATION)
|
1726
1540
|
|
1727
|
-
template <typename AsyncReadStream, typename DynamicBuffer_v1,
|
1541
|
+
template <typename AsyncReadStream, typename DynamicBuffer_v1, typename Traits,
|
1728
1542
|
BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
|
1729
1543
|
std::size_t)) ReadToken>
|
1730
|
-
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
typename constraint<
|
1740
|
-
!is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value
|
1741
|
-
>::type)
|
1742
|
-
BOOST_ASIO_INITFN_AUTO_RESULT_TYPE_SUFFIX((
|
1544
|
+
inline auto async_read_until(AsyncReadStream& s, DynamicBuffer_v1&& buffers,
|
1545
|
+
const boost::basic_regex<char, Traits>& expr, ReadToken&& token,
|
1546
|
+
constraint_t<
|
1547
|
+
is_dynamic_buffer_v1<decay_t<DynamicBuffer_v1>>::value
|
1548
|
+
>,
|
1549
|
+
constraint_t<
|
1550
|
+
!is_dynamic_buffer_v2<decay_t<DynamicBuffer_v1>>::value
|
1551
|
+
>)
|
1552
|
+
-> decltype(
|
1743
1553
|
async_initiate<ReadToken,
|
1744
1554
|
void (boost::system::error_code, std::size_t)>(
|
1745
|
-
declval<detail::initiate_async_read_until_expr_v1<AsyncReadStream
|
1746
|
-
token,
|
1555
|
+
declval<detail::initiate_async_read_until_expr_v1<AsyncReadStream>>(),
|
1556
|
+
token, static_cast<DynamicBuffer_v1&&>(buffers), expr))
|
1747
1557
|
{
|
1748
1558
|
return async_initiate<ReadToken,
|
1749
1559
|
void (boost::system::error_code, std::size_t)>(
|
1750
1560
|
detail::initiate_async_read_until_expr_v1<AsyncReadStream>(s),
|
1751
|
-
token,
|
1561
|
+
token, static_cast<DynamicBuffer_v1&&>(buffers), expr);
|
1752
1562
|
}
|
1753
1563
|
|
1754
1564
|
#endif // defined(BOOST_ASIO_HAS_BOOST_REGEX)
|
@@ -1763,20 +1573,19 @@ namespace detail
|
|
1763
1573
|
public:
|
1764
1574
|
template <typename BufferSequence>
|
1765
1575
|
read_until_match_op_v1(AsyncReadStream& stream,
|
1766
|
-
|
1576
|
+
BufferSequence&& buffers,
|
1767
1577
|
MatchCondition match_condition, ReadHandler& handler)
|
1768
1578
|
: base_from_cancellation_state<ReadHandler>(
|
1769
1579
|
handler, enable_partial_cancellation()),
|
1770
1580
|
stream_(stream),
|
1771
|
-
buffers_(
|
1581
|
+
buffers_(static_cast<BufferSequence&&>(buffers)),
|
1772
1582
|
match_condition_(match_condition),
|
1773
1583
|
start_(0),
|
1774
1584
|
search_position_(0),
|
1775
|
-
handler_(
|
1585
|
+
handler_(static_cast<ReadHandler&&>(handler))
|
1776
1586
|
{
|
1777
1587
|
}
|
1778
1588
|
|
1779
|
-
#if defined(BOOST_ASIO_HAS_MOVE)
|
1780
1589
|
read_until_match_op_v1(const read_until_match_op_v1& other)
|
1781
1590
|
: base_from_cancellation_state<ReadHandler>(other),
|
1782
1591
|
stream_(other.stream_),
|
@@ -1790,17 +1599,15 @@ namespace detail
|
|
1790
1599
|
|
1791
1600
|
read_until_match_op_v1(read_until_match_op_v1&& other)
|
1792
1601
|
: base_from_cancellation_state<ReadHandler>(
|
1793
|
-
|
1794
|
-
ReadHandler>)(other)),
|
1602
|
+
static_cast<base_from_cancellation_state<ReadHandler>&&>(other)),
|
1795
1603
|
stream_(other.stream_),
|
1796
|
-
buffers_(
|
1604
|
+
buffers_(static_cast<DynamicBuffer_v1&&>(other.buffers_)),
|
1797
1605
|
match_condition_(other.match_condition_),
|
1798
1606
|
start_(other.start_),
|
1799
1607
|
search_position_(other.search_position_),
|
1800
|
-
handler_(
|
1608
|
+
handler_(static_cast<ReadHandler&&>(other.handler_))
|
1801
1609
|
{
|
1802
1610
|
}
|
1803
|
-
#endif // defined(BOOST_ASIO_HAS_MOVE)
|
1804
1611
|
|
1805
1612
|
void operator()(boost::system::error_code ec,
|
1806
1613
|
std::size_t bytes_transferred, int start = 0)
|
@@ -1870,7 +1677,7 @@ namespace detail
|
|
1870
1677
|
BOOST_ASIO_HANDLER_LOCATION((
|
1871
1678
|
__FILE__, __LINE__, "async_read_until"));
|
1872
1679
|
stream_.async_read_some(buffers_.prepare(bytes_to_read),
|
1873
|
-
|
1680
|
+
static_cast<read_until_match_op_v1&&>(*this));
|
1874
1681
|
}
|
1875
1682
|
return; default:
|
1876
1683
|
buffers_.commit(bytes_transferred);
|
@@ -1891,7 +1698,7 @@ namespace detail
|
|
1891
1698
|
(ec || search_position_ == not_found)
|
1892
1699
|
? 0 : search_position_;
|
1893
1700
|
|
1894
|
-
|
1701
|
+
static_cast<ReadHandler&&>(handler_)(result_ec, result_n);
|
1895
1702
|
}
|
1896
1703
|
}
|
1897
1704
|
|
@@ -1904,36 +1711,6 @@ namespace detail
|
|
1904
1711
|
ReadHandler handler_;
|
1905
1712
|
};
|
1906
1713
|
|
1907
|
-
template <typename AsyncReadStream, typename DynamicBuffer_v1,
|
1908
|
-
typename MatchCondition, typename ReadHandler>
|
1909
|
-
inline asio_handler_allocate_is_deprecated
|
1910
|
-
asio_handler_allocate(std::size_t size,
|
1911
|
-
read_until_match_op_v1<AsyncReadStream, DynamicBuffer_v1,
|
1912
|
-
MatchCondition, ReadHandler>* this_handler)
|
1913
|
-
{
|
1914
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
1915
|
-
boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_);
|
1916
|
-
return asio_handler_allocate_is_no_longer_used();
|
1917
|
-
#else // defined(BOOST_ASIO_NO_DEPRECATED)
|
1918
|
-
return boost_asio_handler_alloc_helpers::allocate(
|
1919
|
-
size, this_handler->handler_);
|
1920
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
1921
|
-
}
|
1922
|
-
|
1923
|
-
template <typename AsyncReadStream, typename DynamicBuffer_v1,
|
1924
|
-
typename MatchCondition, typename ReadHandler>
|
1925
|
-
inline asio_handler_deallocate_is_deprecated
|
1926
|
-
asio_handler_deallocate(void* pointer, std::size_t size,
|
1927
|
-
read_until_match_op_v1<AsyncReadStream, DynamicBuffer_v1,
|
1928
|
-
MatchCondition, ReadHandler>* this_handler)
|
1929
|
-
{
|
1930
|
-
boost_asio_handler_alloc_helpers::deallocate(
|
1931
|
-
pointer, size, this_handler->handler_);
|
1932
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
1933
|
-
return asio_handler_deallocate_is_no_longer_used();
|
1934
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
1935
|
-
}
|
1936
|
-
|
1937
1714
|
template <typename AsyncReadStream, typename DynamicBuffer_v1,
|
1938
1715
|
typename MatchCondition, typename ReadHandler>
|
1939
1716
|
inline bool asio_handler_is_continuation(
|
@@ -1945,36 +1722,6 @@ namespace detail
|
|
1945
1722
|
this_handler->handler_);
|
1946
1723
|
}
|
1947
1724
|
|
1948
|
-
template <typename Function, typename AsyncReadStream,
|
1949
|
-
typename DynamicBuffer_v1, typename MatchCondition,
|
1950
|
-
typename ReadHandler>
|
1951
|
-
inline asio_handler_invoke_is_deprecated
|
1952
|
-
asio_handler_invoke(Function& function,
|
1953
|
-
read_until_match_op_v1<AsyncReadStream, DynamicBuffer_v1,
|
1954
|
-
MatchCondition, ReadHandler>* this_handler)
|
1955
|
-
{
|
1956
|
-
boost_asio_handler_invoke_helpers::invoke(
|
1957
|
-
function, this_handler->handler_);
|
1958
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
1959
|
-
return asio_handler_invoke_is_no_longer_used();
|
1960
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
1961
|
-
}
|
1962
|
-
|
1963
|
-
template <typename Function, typename AsyncReadStream,
|
1964
|
-
typename DynamicBuffer_v1, typename MatchCondition,
|
1965
|
-
typename ReadHandler>
|
1966
|
-
inline asio_handler_invoke_is_deprecated
|
1967
|
-
asio_handler_invoke(const Function& function,
|
1968
|
-
read_until_match_op_v1<AsyncReadStream, DynamicBuffer_v1,
|
1969
|
-
MatchCondition, ReadHandler>* this_handler)
|
1970
|
-
{
|
1971
|
-
boost_asio_handler_invoke_helpers::invoke(
|
1972
|
-
function, this_handler->handler_);
|
1973
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
1974
|
-
return asio_handler_invoke_is_no_longer_used();
|
1975
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
1976
|
-
}
|
1977
|
-
|
1978
1725
|
template <typename AsyncReadStream>
|
1979
1726
|
class initiate_async_read_until_match_v1
|
1980
1727
|
{
|
@@ -1986,15 +1733,15 @@ namespace detail
|
|
1986
1733
|
{
|
1987
1734
|
}
|
1988
1735
|
|
1989
|
-
executor_type get_executor() const
|
1736
|
+
executor_type get_executor() const noexcept
|
1990
1737
|
{
|
1991
1738
|
return stream_.get_executor();
|
1992
1739
|
}
|
1993
1740
|
|
1994
1741
|
template <typename ReadHandler,
|
1995
1742
|
typename DynamicBuffer_v1, typename MatchCondition>
|
1996
|
-
void operator()(
|
1997
|
-
|
1743
|
+
void operator()(ReadHandler&& handler,
|
1744
|
+
DynamicBuffer_v1&& buffers,
|
1998
1745
|
MatchCondition match_condition) const
|
1999
1746
|
{
|
2000
1747
|
// If you get an error on the following line it means that your handler
|
@@ -2003,9 +1750,9 @@ namespace detail
|
|
2003
1750
|
|
2004
1751
|
non_const_lvalue<ReadHandler> handler2(handler);
|
2005
1752
|
read_until_match_op_v1<AsyncReadStream,
|
2006
|
-
|
2007
|
-
MatchCondition,
|
2008
|
-
stream_,
|
1753
|
+
decay_t<DynamicBuffer_v1>,
|
1754
|
+
MatchCondition, decay_t<ReadHandler>>(
|
1755
|
+
stream_, static_cast<DynamicBuffer_v1&&>(buffers),
|
2009
1756
|
match_condition, handler2.value)(boost::system::error_code(), 0, 1);
|
2010
1757
|
}
|
2011
1758
|
|
@@ -2025,20 +1772,18 @@ struct associator<Associator,
|
|
2025
1772
|
DefaultCandidate>
|
2026
1773
|
: Associator<ReadHandler, DefaultCandidate>
|
2027
1774
|
{
|
2028
|
-
static typename Associator<ReadHandler, DefaultCandidate>::type
|
2029
|
-
|
2030
|
-
DynamicBuffer_v1, MatchCondition, ReadHandler>& h)
|
1775
|
+
static typename Associator<ReadHandler, DefaultCandidate>::type get(
|
1776
|
+
const detail::read_until_match_op_v1<AsyncReadStream,
|
1777
|
+
DynamicBuffer_v1, MatchCondition, ReadHandler>& h) noexcept
|
2031
1778
|
{
|
2032
1779
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_);
|
2033
1780
|
}
|
2034
1781
|
|
2035
|
-
static
|
2036
|
-
|
2037
|
-
get(const detail::read_until_match_op_v1<AsyncReadStream,
|
1782
|
+
static auto get(
|
1783
|
+
const detail::read_until_match_op_v1<AsyncReadStream,
|
2038
1784
|
DynamicBuffer_v1, MatchCondition, ReadHandler>& h,
|
2039
|
-
const DefaultCandidate& c)
|
2040
|
-
|
2041
|
-
Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)))
|
1785
|
+
const DefaultCandidate& c) noexcept
|
1786
|
+
-> decltype(Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c))
|
2042
1787
|
{
|
2043
1788
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
|
2044
1789
|
}
|
@@ -2050,31 +1795,28 @@ template <typename AsyncReadStream,
|
|
2050
1795
|
typename DynamicBuffer_v1, typename MatchCondition,
|
2051
1796
|
BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
|
2052
1797
|
std::size_t)) ReadToken>
|
2053
|
-
|
2054
|
-
|
2055
|
-
|
2056
|
-
BOOST_ASIO_MOVE_ARG(DynamicBuffer_v1) buffers,
|
2057
|
-
MatchCondition match_condition, BOOST_ASIO_MOVE_ARG(ReadToken) token,
|
2058
|
-
typename constraint<
|
1798
|
+
inline auto async_read_until(AsyncReadStream& s, DynamicBuffer_v1&& buffers,
|
1799
|
+
MatchCondition match_condition, ReadToken&& token,
|
1800
|
+
constraint_t<
|
2059
1801
|
is_match_condition<MatchCondition>::value
|
2060
|
-
|
2061
|
-
|
2062
|
-
is_dynamic_buffer_v1<
|
2063
|
-
|
2064
|
-
|
2065
|
-
!is_dynamic_buffer_v2<
|
2066
|
-
|
2067
|
-
|
1802
|
+
>,
|
1803
|
+
constraint_t<
|
1804
|
+
is_dynamic_buffer_v1<decay_t<DynamicBuffer_v1>>::value
|
1805
|
+
>,
|
1806
|
+
constraint_t<
|
1807
|
+
!is_dynamic_buffer_v2<decay_t<DynamicBuffer_v1>>::value
|
1808
|
+
>)
|
1809
|
+
-> decltype(
|
2068
1810
|
async_initiate<ReadToken,
|
2069
1811
|
void (boost::system::error_code, std::size_t)>(
|
2070
|
-
declval<detail::initiate_async_read_until_match_v1<AsyncReadStream
|
2071
|
-
token,
|
2072
|
-
match_condition))
|
1812
|
+
declval<detail::initiate_async_read_until_match_v1<AsyncReadStream>>(),
|
1813
|
+
token, static_cast<DynamicBuffer_v1&&>(buffers),
|
1814
|
+
match_condition))
|
2073
1815
|
{
|
2074
1816
|
return async_initiate<ReadToken,
|
2075
1817
|
void (boost::system::error_code, std::size_t)>(
|
2076
1818
|
detail::initiate_async_read_until_match_v1<AsyncReadStream>(s),
|
2077
|
-
token,
|
1819
|
+
token, static_cast<DynamicBuffer_v1&&>(buffers),
|
2078
1820
|
match_condition);
|
2079
1821
|
}
|
2080
1822
|
|
@@ -2083,52 +1825,59 @@ async_read_until(AsyncReadStream& s,
|
|
2083
1825
|
template <typename AsyncReadStream, typename Allocator,
|
2084
1826
|
BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
|
2085
1827
|
std::size_t)) ReadToken>
|
2086
|
-
inline
|
2087
|
-
|
2088
|
-
|
2089
|
-
|
2090
|
-
|
2091
|
-
|
2092
|
-
|
2093
|
-
delim, BOOST_ASIO_MOVE_CAST(ReadToken)(token))))
|
1828
|
+
inline auto async_read_until(AsyncReadStream& s,
|
1829
|
+
boost::asio::basic_streambuf<Allocator>& b, char delim, ReadToken&& token)
|
1830
|
+
-> decltype(
|
1831
|
+
async_initiate<ReadToken,
|
1832
|
+
void (boost::system::error_code, std::size_t)>(
|
1833
|
+
declval<detail::initiate_async_read_until_delim_v1<AsyncReadStream>>(),
|
1834
|
+
token, basic_streambuf_ref<Allocator>(b), delim))
|
2094
1835
|
{
|
2095
|
-
return
|
2096
|
-
|
1836
|
+
return async_initiate<ReadToken,
|
1837
|
+
void (boost::system::error_code, std::size_t)>(
|
1838
|
+
detail::initiate_async_read_until_delim_v1<AsyncReadStream>(s),
|
1839
|
+
token, basic_streambuf_ref<Allocator>(b), delim);
|
2097
1840
|
}
|
2098
1841
|
|
2099
1842
|
template <typename AsyncReadStream, typename Allocator,
|
2100
1843
|
BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
|
2101
1844
|
std::size_t)) ReadToken>
|
2102
|
-
inline
|
2103
|
-
void (boost::system::error_code, std::size_t))
|
2104
|
-
async_read_until(AsyncReadStream& s,
|
1845
|
+
inline auto async_read_until(AsyncReadStream& s,
|
2105
1846
|
boost::asio::basic_streambuf<Allocator>& b,
|
2106
|
-
BOOST_ASIO_STRING_VIEW_PARAM delim,
|
2107
|
-
|
2108
|
-
|
2109
|
-
|
2110
|
-
|
1847
|
+
BOOST_ASIO_STRING_VIEW_PARAM delim, ReadToken&& token)
|
1848
|
+
-> decltype(
|
1849
|
+
async_initiate<ReadToken,
|
1850
|
+
void (boost::system::error_code, std::size_t)>(
|
1851
|
+
declval<detail::initiate_async_read_until_delim_string_v1<
|
1852
|
+
AsyncReadStream>>(),
|
1853
|
+
token, basic_streambuf_ref<Allocator>(b),
|
1854
|
+
static_cast<std::string>(delim)))
|
2111
1855
|
{
|
2112
|
-
return
|
2113
|
-
|
1856
|
+
return async_initiate<ReadToken,
|
1857
|
+
void (boost::system::error_code, std::size_t)>(
|
1858
|
+
detail::initiate_async_read_until_delim_string_v1<AsyncReadStream>(s),
|
1859
|
+
token, basic_streambuf_ref<Allocator>(b),
|
1860
|
+
static_cast<std::string>(delim));
|
2114
1861
|
}
|
2115
1862
|
|
2116
1863
|
#if defined(BOOST_ASIO_HAS_BOOST_REGEX)
|
2117
1864
|
|
2118
|
-
template <typename AsyncReadStream, typename Allocator,
|
1865
|
+
template <typename AsyncReadStream, typename Allocator, typename Traits,
|
2119
1866
|
BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
|
2120
1867
|
std::size_t)) ReadToken>
|
2121
|
-
inline
|
2122
|
-
|
2123
|
-
|
2124
|
-
|
2125
|
-
|
2126
|
-
|
2127
|
-
|
2128
|
-
|
1868
|
+
inline auto async_read_until(AsyncReadStream& s,
|
1869
|
+
boost::asio::basic_streambuf<Allocator>& b,
|
1870
|
+
const boost::basic_regex<char, Traits>& expr, ReadToken&& token)
|
1871
|
+
-> decltype(
|
1872
|
+
async_initiate<ReadToken,
|
1873
|
+
void (boost::system::error_code, std::size_t)>(
|
1874
|
+
declval<detail::initiate_async_read_until_expr_v1<AsyncReadStream>>(),
|
1875
|
+
token, basic_streambuf_ref<Allocator>(b), expr))
|
2129
1876
|
{
|
2130
|
-
return
|
2131
|
-
|
1877
|
+
return async_initiate<ReadToken,
|
1878
|
+
void (boost::system::error_code, std::size_t)>(
|
1879
|
+
detail::initiate_async_read_until_expr_v1<AsyncReadStream>(s),
|
1880
|
+
token, basic_streambuf_ref<Allocator>(b), expr);
|
2132
1881
|
}
|
2133
1882
|
|
2134
1883
|
#endif // defined(BOOST_ASIO_HAS_BOOST_REGEX)
|
@@ -2136,18 +1885,20 @@ async_read_until(AsyncReadStream& s,
|
|
2136
1885
|
template <typename AsyncReadStream, typename Allocator, typename MatchCondition,
|
2137
1886
|
BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
|
2138
1887
|
std::size_t)) ReadToken>
|
2139
|
-
inline
|
2140
|
-
void (boost::system::error_code, std::size_t))
|
2141
|
-
async_read_until(AsyncReadStream& s,
|
1888
|
+
inline auto async_read_until(AsyncReadStream& s,
|
2142
1889
|
boost::asio::basic_streambuf<Allocator>& b,
|
2143
|
-
MatchCondition match_condition,
|
2144
|
-
|
2145
|
-
|
2146
|
-
|
2147
|
-
|
1890
|
+
MatchCondition match_condition, ReadToken&& token,
|
1891
|
+
constraint_t<is_match_condition<MatchCondition>::value>)
|
1892
|
+
-> decltype(
|
1893
|
+
async_initiate<ReadToken,
|
1894
|
+
void (boost::system::error_code, std::size_t)>(
|
1895
|
+
declval<detail::initiate_async_read_until_match_v1<AsyncReadStream>>(),
|
1896
|
+
token, basic_streambuf_ref<Allocator>(b), match_condition))
|
2148
1897
|
{
|
2149
|
-
return
|
2150
|
-
|
1898
|
+
return async_initiate<ReadToken,
|
1899
|
+
void (boost::system::error_code, std::size_t)>(
|
1900
|
+
detail::initiate_async_read_until_match_v1<AsyncReadStream>(s),
|
1901
|
+
token, basic_streambuf_ref<Allocator>(b), match_condition);
|
2151
1902
|
}
|
2152
1903
|
|
2153
1904
|
#endif // !defined(BOOST_ASIO_NO_IOSTREAM)
|
@@ -2164,21 +1915,20 @@ namespace detail
|
|
2164
1915
|
public:
|
2165
1916
|
template <typename BufferSequence>
|
2166
1917
|
read_until_delim_op_v2(AsyncReadStream& stream,
|
2167
|
-
|
1918
|
+
BufferSequence&& buffers,
|
2168
1919
|
char delim, ReadHandler& handler)
|
2169
1920
|
: base_from_cancellation_state<ReadHandler>(
|
2170
1921
|
handler, enable_partial_cancellation()),
|
2171
1922
|
stream_(stream),
|
2172
|
-
buffers_(
|
1923
|
+
buffers_(static_cast<BufferSequence&&>(buffers)),
|
2173
1924
|
delim_(delim),
|
2174
1925
|
start_(0),
|
2175
1926
|
search_position_(0),
|
2176
1927
|
bytes_to_read_(0),
|
2177
|
-
handler_(
|
1928
|
+
handler_(static_cast<ReadHandler&&>(handler))
|
2178
1929
|
{
|
2179
1930
|
}
|
2180
1931
|
|
2181
|
-
#if defined(BOOST_ASIO_HAS_MOVE)
|
2182
1932
|
read_until_delim_op_v2(const read_until_delim_op_v2& other)
|
2183
1933
|
: base_from_cancellation_state<ReadHandler>(other),
|
2184
1934
|
stream_(other.stream_),
|
@@ -2193,18 +1943,16 @@ namespace detail
|
|
2193
1943
|
|
2194
1944
|
read_until_delim_op_v2(read_until_delim_op_v2&& other)
|
2195
1945
|
: base_from_cancellation_state<ReadHandler>(
|
2196
|
-
|
2197
|
-
ReadHandler>)(other)),
|
1946
|
+
static_cast<base_from_cancellation_state<ReadHandler>&&>(other)),
|
2198
1947
|
stream_(other.stream_),
|
2199
|
-
buffers_(
|
1948
|
+
buffers_(static_cast<DynamicBuffer_v2&&>(other.buffers_)),
|
2200
1949
|
delim_(other.delim_),
|
2201
1950
|
start_(other.start_),
|
2202
1951
|
search_position_(other.search_position_),
|
2203
1952
|
bytes_to_read_(other.bytes_to_read_),
|
2204
|
-
handler_(
|
1953
|
+
handler_(static_cast<ReadHandler&&>(other.handler_))
|
2205
1954
|
{
|
2206
1955
|
}
|
2207
|
-
#endif // defined(BOOST_ASIO_HAS_MOVE)
|
2208
1956
|
|
2209
1957
|
void operator()(boost::system::error_code ec,
|
2210
1958
|
std::size_t bytes_transferred, int start = 0)
|
@@ -2268,7 +2016,7 @@ namespace detail
|
|
2268
2016
|
BOOST_ASIO_HANDLER_LOCATION((
|
2269
2017
|
__FILE__, __LINE__, "async_read_until"));
|
2270
2018
|
stream_.async_read_some(buffers_.data(pos, bytes_to_read_),
|
2271
|
-
|
2019
|
+
static_cast<read_until_delim_op_v2&&>(*this));
|
2272
2020
|
}
|
2273
2021
|
return; default:
|
2274
2022
|
buffers_.shrink(bytes_to_read_ - bytes_transferred);
|
@@ -2289,7 +2037,7 @@ namespace detail
|
|
2289
2037
|
(ec || search_position_ == not_found)
|
2290
2038
|
? 0 : search_position_;
|
2291
2039
|
|
2292
|
-
|
2040
|
+
static_cast<ReadHandler&&>(handler_)(result_ec, result_n);
|
2293
2041
|
}
|
2294
2042
|
}
|
2295
2043
|
|
@@ -2303,36 +2051,6 @@ namespace detail
|
|
2303
2051
|
ReadHandler handler_;
|
2304
2052
|
};
|
2305
2053
|
|
2306
|
-
template <typename AsyncReadStream,
|
2307
|
-
typename DynamicBuffer_v2, typename ReadHandler>
|
2308
|
-
inline asio_handler_allocate_is_deprecated
|
2309
|
-
asio_handler_allocate(std::size_t size,
|
2310
|
-
read_until_delim_op_v2<AsyncReadStream,
|
2311
|
-
DynamicBuffer_v2, ReadHandler>* this_handler)
|
2312
|
-
{
|
2313
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
2314
|
-
boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_);
|
2315
|
-
return asio_handler_allocate_is_no_longer_used();
|
2316
|
-
#else // defined(BOOST_ASIO_NO_DEPRECATED)
|
2317
|
-
return boost_asio_handler_alloc_helpers::allocate(
|
2318
|
-
size, this_handler->handler_);
|
2319
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
2320
|
-
}
|
2321
|
-
|
2322
|
-
template <typename AsyncReadStream,
|
2323
|
-
typename DynamicBuffer_v2, typename ReadHandler>
|
2324
|
-
inline asio_handler_deallocate_is_deprecated
|
2325
|
-
asio_handler_deallocate(void* pointer, std::size_t size,
|
2326
|
-
read_until_delim_op_v2<AsyncReadStream,
|
2327
|
-
DynamicBuffer_v2, ReadHandler>* this_handler)
|
2328
|
-
{
|
2329
|
-
boost_asio_handler_alloc_helpers::deallocate(
|
2330
|
-
pointer, size, this_handler->handler_);
|
2331
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
2332
|
-
return asio_handler_deallocate_is_no_longer_used();
|
2333
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
2334
|
-
}
|
2335
|
-
|
2336
2054
|
template <typename AsyncReadStream,
|
2337
2055
|
typename DynamicBuffer_v2, typename ReadHandler>
|
2338
2056
|
inline bool asio_handler_is_continuation(
|
@@ -2344,34 +2062,6 @@ namespace detail
|
|
2344
2062
|
this_handler->handler_);
|
2345
2063
|
}
|
2346
2064
|
|
2347
|
-
template <typename Function, typename AsyncReadStream,
|
2348
|
-
typename DynamicBuffer_v2, typename ReadHandler>
|
2349
|
-
inline asio_handler_invoke_is_deprecated
|
2350
|
-
asio_handler_invoke(Function& function,
|
2351
|
-
read_until_delim_op_v2<AsyncReadStream,
|
2352
|
-
DynamicBuffer_v2, ReadHandler>* this_handler)
|
2353
|
-
{
|
2354
|
-
boost_asio_handler_invoke_helpers::invoke(
|
2355
|
-
function, this_handler->handler_);
|
2356
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
2357
|
-
return asio_handler_invoke_is_no_longer_used();
|
2358
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
2359
|
-
}
|
2360
|
-
|
2361
|
-
template <typename Function, typename AsyncReadStream,
|
2362
|
-
typename DynamicBuffer_v2, typename ReadHandler>
|
2363
|
-
inline asio_handler_invoke_is_deprecated
|
2364
|
-
asio_handler_invoke(const Function& function,
|
2365
|
-
read_until_delim_op_v2<AsyncReadStream,
|
2366
|
-
DynamicBuffer_v2, ReadHandler>* this_handler)
|
2367
|
-
{
|
2368
|
-
boost_asio_handler_invoke_helpers::invoke(
|
2369
|
-
function, this_handler->handler_);
|
2370
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
2371
|
-
return asio_handler_invoke_is_no_longer_used();
|
2372
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
2373
|
-
}
|
2374
|
-
|
2375
2065
|
template <typename AsyncReadStream>
|
2376
2066
|
class initiate_async_read_until_delim_v2
|
2377
2067
|
{
|
@@ -2383,14 +2073,14 @@ namespace detail
|
|
2383
2073
|
{
|
2384
2074
|
}
|
2385
2075
|
|
2386
|
-
executor_type get_executor() const
|
2076
|
+
executor_type get_executor() const noexcept
|
2387
2077
|
{
|
2388
2078
|
return stream_.get_executor();
|
2389
2079
|
}
|
2390
2080
|
|
2391
2081
|
template <typename ReadHandler, typename DynamicBuffer_v2>
|
2392
|
-
void operator()(
|
2393
|
-
|
2082
|
+
void operator()(ReadHandler&& handler,
|
2083
|
+
DynamicBuffer_v2&& buffers, char delim) const
|
2394
2084
|
{
|
2395
2085
|
// If you get an error on the following line it means that your handler
|
2396
2086
|
// does not meet the documented type requirements for a ReadHandler.
|
@@ -2398,9 +2088,9 @@ namespace detail
|
|
2398
2088
|
|
2399
2089
|
non_const_lvalue<ReadHandler> handler2(handler);
|
2400
2090
|
read_until_delim_op_v2<AsyncReadStream,
|
2401
|
-
|
2402
|
-
|
2403
|
-
stream_,
|
2091
|
+
decay_t<DynamicBuffer_v2>,
|
2092
|
+
decay_t<ReadHandler>>(
|
2093
|
+
stream_, static_cast<DynamicBuffer_v2&&>(buffers),
|
2404
2094
|
delim, handler2.value)(boost::system::error_code(), 0, 1);
|
2405
2095
|
}
|
2406
2096
|
|
@@ -2420,20 +2110,18 @@ struct associator<Associator,
|
|
2420
2110
|
DefaultCandidate>
|
2421
2111
|
: Associator<ReadHandler, DefaultCandidate>
|
2422
2112
|
{
|
2423
|
-
static typename Associator<ReadHandler, DefaultCandidate>::type
|
2424
|
-
|
2425
|
-
DynamicBuffer_v2, ReadHandler>& h)
|
2113
|
+
static typename Associator<ReadHandler, DefaultCandidate>::type get(
|
2114
|
+
const detail::read_until_delim_op_v2<AsyncReadStream,
|
2115
|
+
DynamicBuffer_v2, ReadHandler>& h) noexcept
|
2426
2116
|
{
|
2427
2117
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_);
|
2428
2118
|
}
|
2429
2119
|
|
2430
|
-
static
|
2431
|
-
|
2432
|
-
get(const detail::read_until_delim_op_v2<AsyncReadStream,
|
2120
|
+
static auto get(
|
2121
|
+
const detail::read_until_delim_op_v2<AsyncReadStream,
|
2433
2122
|
DynamicBuffer_v2, ReadHandler>& h,
|
2434
|
-
const DefaultCandidate& c)
|
2435
|
-
|
2436
|
-
Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)))
|
2123
|
+
const DefaultCandidate& c) noexcept
|
2124
|
+
-> decltype(Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c))
|
2437
2125
|
{
|
2438
2126
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
|
2439
2127
|
}
|
@@ -2444,23 +2132,21 @@ struct associator<Associator,
|
|
2444
2132
|
template <typename AsyncReadStream, typename DynamicBuffer_v2,
|
2445
2133
|
BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
|
2446
2134
|
std::size_t)) ReadToken>
|
2447
|
-
|
2448
|
-
|
2449
|
-
|
2450
|
-
char delim, BOOST_ASIO_MOVE_ARG(ReadToken) token,
|
2451
|
-
typename constraint<
|
2135
|
+
inline auto async_read_until(AsyncReadStream& s,
|
2136
|
+
DynamicBuffer_v2 buffers, char delim, ReadToken&& token,
|
2137
|
+
constraint_t<
|
2452
2138
|
is_dynamic_buffer_v2<DynamicBuffer_v2>::value
|
2453
|
-
|
2454
|
-
|
2139
|
+
>)
|
2140
|
+
-> decltype(
|
2455
2141
|
async_initiate<ReadToken,
|
2456
2142
|
void (boost::system::error_code, std::size_t)>(
|
2457
|
-
declval<detail::initiate_async_read_until_delim_v2<AsyncReadStream
|
2458
|
-
token,
|
2143
|
+
declval<detail::initiate_async_read_until_delim_v2<AsyncReadStream>>(),
|
2144
|
+
token, static_cast<DynamicBuffer_v2&&>(buffers), delim))
|
2459
2145
|
{
|
2460
2146
|
return async_initiate<ReadToken,
|
2461
2147
|
void (boost::system::error_code, std::size_t)>(
|
2462
2148
|
detail::initiate_async_read_until_delim_v2<AsyncReadStream>(s),
|
2463
|
-
token,
|
2149
|
+
token, static_cast<DynamicBuffer_v2&&>(buffers), delim);
|
2464
2150
|
}
|
2465
2151
|
|
2466
2152
|
namespace detail
|
@@ -2473,21 +2159,20 @@ namespace detail
|
|
2473
2159
|
public:
|
2474
2160
|
template <typename BufferSequence>
|
2475
2161
|
read_until_delim_string_op_v2(AsyncReadStream& stream,
|
2476
|
-
|
2162
|
+
BufferSequence&& buffers,
|
2477
2163
|
const std::string& delim, ReadHandler& handler)
|
2478
2164
|
: base_from_cancellation_state<ReadHandler>(
|
2479
2165
|
handler, enable_partial_cancellation()),
|
2480
2166
|
stream_(stream),
|
2481
|
-
buffers_(
|
2167
|
+
buffers_(static_cast<BufferSequence&&>(buffers)),
|
2482
2168
|
delim_(delim),
|
2483
2169
|
start_(0),
|
2484
2170
|
search_position_(0),
|
2485
2171
|
bytes_to_read_(0),
|
2486
|
-
handler_(
|
2172
|
+
handler_(static_cast<ReadHandler&&>(handler))
|
2487
2173
|
{
|
2488
2174
|
}
|
2489
2175
|
|
2490
|
-
#if defined(BOOST_ASIO_HAS_MOVE)
|
2491
2176
|
read_until_delim_string_op_v2(const read_until_delim_string_op_v2& other)
|
2492
2177
|
: base_from_cancellation_state<ReadHandler>(other),
|
2493
2178
|
stream_(other.stream_),
|
@@ -2502,18 +2187,16 @@ namespace detail
|
|
2502
2187
|
|
2503
2188
|
read_until_delim_string_op_v2(read_until_delim_string_op_v2&& other)
|
2504
2189
|
: base_from_cancellation_state<ReadHandler>(
|
2505
|
-
|
2506
|
-
ReadHandler>)(other)),
|
2190
|
+
static_cast<base_from_cancellation_state<ReadHandler>&&>(other)),
|
2507
2191
|
stream_(other.stream_),
|
2508
|
-
buffers_(
|
2509
|
-
delim_(
|
2192
|
+
buffers_(static_cast<DynamicBuffer_v2&&>(other.buffers_)),
|
2193
|
+
delim_(static_cast<std::string&&>(other.delim_)),
|
2510
2194
|
start_(other.start_),
|
2511
2195
|
search_position_(other.search_position_),
|
2512
2196
|
bytes_to_read_(other.bytes_to_read_),
|
2513
|
-
handler_(
|
2197
|
+
handler_(static_cast<ReadHandler&&>(other.handler_))
|
2514
2198
|
{
|
2515
2199
|
}
|
2516
|
-
#endif // defined(BOOST_ASIO_HAS_MOVE)
|
2517
2200
|
|
2518
2201
|
void operator()(boost::system::error_code ec,
|
2519
2202
|
std::size_t bytes_transferred, int start = 0)
|
@@ -2588,7 +2271,7 @@ namespace detail
|
|
2588
2271
|
BOOST_ASIO_HANDLER_LOCATION((
|
2589
2272
|
__FILE__, __LINE__, "async_read_until"));
|
2590
2273
|
stream_.async_read_some(buffers_.data(pos, bytes_to_read_),
|
2591
|
-
|
2274
|
+
static_cast<read_until_delim_string_op_v2&&>(*this));
|
2592
2275
|
}
|
2593
2276
|
return; default:
|
2594
2277
|
buffers_.shrink(bytes_to_read_ - bytes_transferred);
|
@@ -2609,7 +2292,7 @@ namespace detail
|
|
2609
2292
|
(ec || search_position_ == not_found)
|
2610
2293
|
? 0 : search_position_;
|
2611
2294
|
|
2612
|
-
|
2295
|
+
static_cast<ReadHandler&&>(handler_)(result_ec, result_n);
|
2613
2296
|
}
|
2614
2297
|
}
|
2615
2298
|
|
@@ -2623,36 +2306,6 @@ namespace detail
|
|
2623
2306
|
ReadHandler handler_;
|
2624
2307
|
};
|
2625
2308
|
|
2626
|
-
template <typename AsyncReadStream,
|
2627
|
-
typename DynamicBuffer_v2, typename ReadHandler>
|
2628
|
-
inline asio_handler_allocate_is_deprecated
|
2629
|
-
asio_handler_allocate(std::size_t size,
|
2630
|
-
read_until_delim_string_op_v2<AsyncReadStream,
|
2631
|
-
DynamicBuffer_v2, ReadHandler>* this_handler)
|
2632
|
-
{
|
2633
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
2634
|
-
boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_);
|
2635
|
-
return asio_handler_allocate_is_no_longer_used();
|
2636
|
-
#else // defined(BOOST_ASIO_NO_DEPRECATED)
|
2637
|
-
return boost_asio_handler_alloc_helpers::allocate(
|
2638
|
-
size, this_handler->handler_);
|
2639
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
2640
|
-
}
|
2641
|
-
|
2642
|
-
template <typename AsyncReadStream,
|
2643
|
-
typename DynamicBuffer_v2, typename ReadHandler>
|
2644
|
-
inline asio_handler_deallocate_is_deprecated
|
2645
|
-
asio_handler_deallocate(void* pointer, std::size_t size,
|
2646
|
-
read_until_delim_string_op_v2<AsyncReadStream,
|
2647
|
-
DynamicBuffer_v2, ReadHandler>* this_handler)
|
2648
|
-
{
|
2649
|
-
boost_asio_handler_alloc_helpers::deallocate(
|
2650
|
-
pointer, size, this_handler->handler_);
|
2651
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
2652
|
-
return asio_handler_deallocate_is_no_longer_used();
|
2653
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
2654
|
-
}
|
2655
|
-
|
2656
2309
|
template <typename AsyncReadStream,
|
2657
2310
|
typename DynamicBuffer_v2, typename ReadHandler>
|
2658
2311
|
inline bool asio_handler_is_continuation(
|
@@ -2664,34 +2317,6 @@ namespace detail
|
|
2664
2317
|
this_handler->handler_);
|
2665
2318
|
}
|
2666
2319
|
|
2667
|
-
template <typename Function, typename AsyncReadStream,
|
2668
|
-
typename DynamicBuffer_v2, typename ReadHandler>
|
2669
|
-
inline asio_handler_invoke_is_deprecated
|
2670
|
-
asio_handler_invoke(Function& function,
|
2671
|
-
read_until_delim_string_op_v2<AsyncReadStream,
|
2672
|
-
DynamicBuffer_v2, ReadHandler>* this_handler)
|
2673
|
-
{
|
2674
|
-
boost_asio_handler_invoke_helpers::invoke(
|
2675
|
-
function, this_handler->handler_);
|
2676
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
2677
|
-
return asio_handler_invoke_is_no_longer_used();
|
2678
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
2679
|
-
}
|
2680
|
-
|
2681
|
-
template <typename Function, typename AsyncReadStream,
|
2682
|
-
typename DynamicBuffer_v2, typename ReadHandler>
|
2683
|
-
inline asio_handler_invoke_is_deprecated
|
2684
|
-
asio_handler_invoke(const Function& function,
|
2685
|
-
read_until_delim_string_op_v2<AsyncReadStream,
|
2686
|
-
DynamicBuffer_v2, ReadHandler>* this_handler)
|
2687
|
-
{
|
2688
|
-
boost_asio_handler_invoke_helpers::invoke(
|
2689
|
-
function, this_handler->handler_);
|
2690
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
2691
|
-
return asio_handler_invoke_is_no_longer_used();
|
2692
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
2693
|
-
}
|
2694
|
-
|
2695
2320
|
template <typename AsyncReadStream>
|
2696
2321
|
class initiate_async_read_until_delim_string_v2
|
2697
2322
|
{
|
@@ -2703,14 +2328,14 @@ namespace detail
|
|
2703
2328
|
{
|
2704
2329
|
}
|
2705
2330
|
|
2706
|
-
executor_type get_executor() const
|
2331
|
+
executor_type get_executor() const noexcept
|
2707
2332
|
{
|
2708
2333
|
return stream_.get_executor();
|
2709
2334
|
}
|
2710
2335
|
|
2711
2336
|
template <typename ReadHandler, typename DynamicBuffer_v2>
|
2712
|
-
void operator()(
|
2713
|
-
|
2337
|
+
void operator()(ReadHandler&& handler,
|
2338
|
+
DynamicBuffer_v2&& buffers,
|
2714
2339
|
const std::string& delim) const
|
2715
2340
|
{
|
2716
2341
|
// If you get an error on the following line it means that your handler
|
@@ -2719,9 +2344,9 @@ namespace detail
|
|
2719
2344
|
|
2720
2345
|
non_const_lvalue<ReadHandler> handler2(handler);
|
2721
2346
|
read_until_delim_string_op_v2<AsyncReadStream,
|
2722
|
-
|
2723
|
-
|
2724
|
-
stream_,
|
2347
|
+
decay_t<DynamicBuffer_v2>,
|
2348
|
+
decay_t<ReadHandler>>(
|
2349
|
+
stream_, static_cast<DynamicBuffer_v2&&>(buffers),
|
2725
2350
|
delim, handler2.value)(boost::system::error_code(), 0, 1);
|
2726
2351
|
}
|
2727
2352
|
|
@@ -2741,20 +2366,18 @@ struct associator<Associator,
|
|
2741
2366
|
DefaultCandidate>
|
2742
2367
|
: Associator<ReadHandler, DefaultCandidate>
|
2743
2368
|
{
|
2744
|
-
static typename Associator<ReadHandler, DefaultCandidate>::type
|
2745
|
-
|
2746
|
-
DynamicBuffer_v2, ReadHandler>& h)
|
2369
|
+
static typename Associator<ReadHandler, DefaultCandidate>::type get(
|
2370
|
+
const detail::read_until_delim_string_op_v2<
|
2371
|
+
AsyncReadStream, DynamicBuffer_v2, ReadHandler>& h) noexcept
|
2747
2372
|
{
|
2748
2373
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_);
|
2749
2374
|
}
|
2750
2375
|
|
2751
|
-
static
|
2752
|
-
|
2753
|
-
|
2754
|
-
|
2755
|
-
|
2756
|
-
BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
|
2757
|
-
Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)))
|
2376
|
+
static auto get(
|
2377
|
+
const detail::read_until_delim_string_op_v2<
|
2378
|
+
AsyncReadStream, DynamicBuffer_v2, ReadHandler>& h,
|
2379
|
+
const DefaultCandidate& c) noexcept
|
2380
|
+
-> decltype(Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c))
|
2758
2381
|
{
|
2759
2382
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
|
2760
2383
|
}
|
@@ -2766,26 +2389,23 @@ template <typename AsyncReadStream,
|
|
2766
2389
|
typename DynamicBuffer_v2,
|
2767
2390
|
BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
|
2768
2391
|
std::size_t)) ReadToken>
|
2769
|
-
|
2770
|
-
|
2771
|
-
|
2772
|
-
DynamicBuffer_v2 buffers, BOOST_ASIO_STRING_VIEW_PARAM delim,
|
2773
|
-
BOOST_ASIO_MOVE_ARG(ReadToken) token,
|
2774
|
-
typename constraint<
|
2392
|
+
inline auto async_read_until(AsyncReadStream& s, DynamicBuffer_v2 buffers,
|
2393
|
+
BOOST_ASIO_STRING_VIEW_PARAM delim, ReadToken&& token,
|
2394
|
+
constraint_t<
|
2775
2395
|
is_dynamic_buffer_v2<DynamicBuffer_v2>::value
|
2776
|
-
|
2777
|
-
|
2396
|
+
>)
|
2397
|
+
-> decltype(
|
2778
2398
|
async_initiate<ReadToken,
|
2779
2399
|
void (boost::system::error_code, std::size_t)>(
|
2780
2400
|
declval<detail::initiate_async_read_until_delim_string_v2<
|
2781
|
-
AsyncReadStream
|
2782
|
-
token,
|
2783
|
-
static_cast<std::string>(delim)))
|
2401
|
+
AsyncReadStream>>(),
|
2402
|
+
token, static_cast<DynamicBuffer_v2&&>(buffers),
|
2403
|
+
static_cast<std::string>(delim)))
|
2784
2404
|
{
|
2785
2405
|
return async_initiate<ReadToken,
|
2786
2406
|
void (boost::system::error_code, std::size_t)>(
|
2787
2407
|
detail::initiate_async_read_until_delim_string_v2<AsyncReadStream>(s),
|
2788
|
-
token,
|
2408
|
+
token, static_cast<DynamicBuffer_v2&&>(buffers),
|
2789
2409
|
static_cast<std::string>(delim));
|
2790
2410
|
}
|
2791
2411
|
|
@@ -2800,23 +2420,21 @@ namespace detail
|
|
2800
2420
|
: public base_from_cancellation_state<ReadHandler>
|
2801
2421
|
{
|
2802
2422
|
public:
|
2803
|
-
template <typename BufferSequence>
|
2804
|
-
read_until_expr_op_v2(AsyncReadStream& stream,
|
2805
|
-
|
2806
|
-
const boost::regex& expr, ReadHandler& handler)
|
2423
|
+
template <typename BufferSequence, typename Traits>
|
2424
|
+
read_until_expr_op_v2(AsyncReadStream& stream, BufferSequence&& buffers,
|
2425
|
+
const boost::basic_regex<char, Traits>& expr, ReadHandler& handler)
|
2807
2426
|
: base_from_cancellation_state<ReadHandler>(
|
2808
2427
|
handler, enable_partial_cancellation()),
|
2809
2428
|
stream_(stream),
|
2810
|
-
buffers_(
|
2429
|
+
buffers_(static_cast<BufferSequence&&>(buffers)),
|
2811
2430
|
expr_(expr),
|
2812
2431
|
start_(0),
|
2813
2432
|
search_position_(0),
|
2814
2433
|
bytes_to_read_(0),
|
2815
|
-
handler_(
|
2434
|
+
handler_(static_cast<ReadHandler&&>(handler))
|
2816
2435
|
{
|
2817
2436
|
}
|
2818
2437
|
|
2819
|
-
#if defined(BOOST_ASIO_HAS_MOVE)
|
2820
2438
|
read_until_expr_op_v2(const read_until_expr_op_v2& other)
|
2821
2439
|
: base_from_cancellation_state<ReadHandler>(other),
|
2822
2440
|
stream_(other.stream_),
|
@@ -2831,18 +2449,16 @@ namespace detail
|
|
2831
2449
|
|
2832
2450
|
read_until_expr_op_v2(read_until_expr_op_v2&& other)
|
2833
2451
|
: base_from_cancellation_state<ReadHandler>(
|
2834
|
-
|
2835
|
-
ReadHandler>)(other)),
|
2452
|
+
static_cast<base_from_cancellation_state<ReadHandler>&&>(other)),
|
2836
2453
|
stream_(other.stream_),
|
2837
|
-
buffers_(
|
2454
|
+
buffers_(static_cast<DynamicBuffer_v2&&>(other.buffers_)),
|
2838
2455
|
expr_(other.expr_),
|
2839
2456
|
start_(other.start_),
|
2840
2457
|
search_position_(other.search_position_),
|
2841
2458
|
bytes_to_read_(other.bytes_to_read_),
|
2842
|
-
handler_(
|
2459
|
+
handler_(static_cast<ReadHandler&&>(other.handler_))
|
2843
2460
|
{
|
2844
2461
|
}
|
2845
|
-
#endif // defined(BOOST_ASIO_HAS_MOVE)
|
2846
2462
|
|
2847
2463
|
void operator()(boost::system::error_code ec,
|
2848
2464
|
std::size_t bytes_transferred, int start = 0)
|
@@ -2868,10 +2484,10 @@ namespace detail
|
|
2868
2484
|
|
2869
2485
|
// Look for a match.
|
2870
2486
|
boost::match_results<iterator,
|
2871
|
-
typename std::vector<boost::sub_match<iterator
|
2487
|
+
typename std::vector<boost::sub_match<iterator>>::allocator_type>
|
2872
2488
|
match_results;
|
2873
|
-
bool match = regex_search(start_pos, end,
|
2874
|
-
|
2489
|
+
bool match = regex_search(start_pos, end,
|
2490
|
+
match_results, expr_, regex_match_flags());
|
2875
2491
|
if (match && match_results[0].matched)
|
2876
2492
|
{
|
2877
2493
|
// Full match. We're done.
|
@@ -2920,7 +2536,7 @@ namespace detail
|
|
2920
2536
|
BOOST_ASIO_HANDLER_LOCATION((
|
2921
2537
|
__FILE__, __LINE__, "async_read_until"));
|
2922
2538
|
stream_.async_read_some(buffers_.data(pos, bytes_to_read_),
|
2923
|
-
|
2539
|
+
static_cast<read_until_expr_op_v2&&>(*this));
|
2924
2540
|
}
|
2925
2541
|
return; default:
|
2926
2542
|
buffers_.shrink(bytes_to_read_ - bytes_transferred);
|
@@ -2941,7 +2557,7 @@ namespace detail
|
|
2941
2557
|
(ec || search_position_ == not_found)
|
2942
2558
|
? 0 : search_position_;
|
2943
2559
|
|
2944
|
-
|
2560
|
+
static_cast<ReadHandler&&>(handler_)(result_ec, result_n);
|
2945
2561
|
}
|
2946
2562
|
}
|
2947
2563
|
|
@@ -2955,36 +2571,6 @@ namespace detail
|
|
2955
2571
|
ReadHandler handler_;
|
2956
2572
|
};
|
2957
2573
|
|
2958
|
-
template <typename AsyncReadStream, typename DynamicBuffer_v2,
|
2959
|
-
typename RegEx, typename ReadHandler>
|
2960
|
-
inline asio_handler_allocate_is_deprecated
|
2961
|
-
asio_handler_allocate(std::size_t size,
|
2962
|
-
read_until_expr_op_v2<AsyncReadStream,
|
2963
|
-
DynamicBuffer_v2, RegEx, ReadHandler>* this_handler)
|
2964
|
-
{
|
2965
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
2966
|
-
boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_);
|
2967
|
-
return asio_handler_allocate_is_no_longer_used();
|
2968
|
-
#else // defined(BOOST_ASIO_NO_DEPRECATED)
|
2969
|
-
return boost_asio_handler_alloc_helpers::allocate(
|
2970
|
-
size, this_handler->handler_);
|
2971
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
2972
|
-
}
|
2973
|
-
|
2974
|
-
template <typename AsyncReadStream, typename DynamicBuffer_v2,
|
2975
|
-
typename RegEx, typename ReadHandler>
|
2976
|
-
inline asio_handler_deallocate_is_deprecated
|
2977
|
-
asio_handler_deallocate(void* pointer, std::size_t size,
|
2978
|
-
read_until_expr_op_v2<AsyncReadStream,
|
2979
|
-
DynamicBuffer_v2, RegEx, ReadHandler>* this_handler)
|
2980
|
-
{
|
2981
|
-
boost_asio_handler_alloc_helpers::deallocate(
|
2982
|
-
pointer, size, this_handler->handler_);
|
2983
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
2984
|
-
return asio_handler_deallocate_is_no_longer_used();
|
2985
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
2986
|
-
}
|
2987
|
-
|
2988
2574
|
template <typename AsyncReadStream, typename DynamicBuffer_v2,
|
2989
2575
|
typename RegEx, typename ReadHandler>
|
2990
2576
|
inline bool asio_handler_is_continuation(
|
@@ -2996,34 +2582,6 @@ namespace detail
|
|
2996
2582
|
this_handler->handler_);
|
2997
2583
|
}
|
2998
2584
|
|
2999
|
-
template <typename Function, typename AsyncReadStream,
|
3000
|
-
typename DynamicBuffer_v2, typename RegEx, typename ReadHandler>
|
3001
|
-
inline asio_handler_invoke_is_deprecated
|
3002
|
-
asio_handler_invoke(Function& function,
|
3003
|
-
read_until_expr_op_v2<AsyncReadStream,
|
3004
|
-
DynamicBuffer_v2, RegEx, ReadHandler>* this_handler)
|
3005
|
-
{
|
3006
|
-
boost_asio_handler_invoke_helpers::invoke(
|
3007
|
-
function, this_handler->handler_);
|
3008
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
3009
|
-
return asio_handler_invoke_is_no_longer_used();
|
3010
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
3011
|
-
}
|
3012
|
-
|
3013
|
-
template <typename Function, typename AsyncReadStream,
|
3014
|
-
typename DynamicBuffer_v2, typename RegEx, typename ReadHandler>
|
3015
|
-
inline asio_handler_invoke_is_deprecated
|
3016
|
-
asio_handler_invoke(const Function& function,
|
3017
|
-
read_until_expr_op_v2<AsyncReadStream,
|
3018
|
-
DynamicBuffer_v2, RegEx, ReadHandler>* this_handler)
|
3019
|
-
{
|
3020
|
-
boost_asio_handler_invoke_helpers::invoke(
|
3021
|
-
function, this_handler->handler_);
|
3022
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
3023
|
-
return asio_handler_invoke_is_no_longer_used();
|
3024
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
3025
|
-
}
|
3026
|
-
|
3027
2585
|
template <typename AsyncReadStream>
|
3028
2586
|
class initiate_async_read_until_expr_v2
|
3029
2587
|
{
|
@@ -3035,14 +2593,14 @@ namespace detail
|
|
3035
2593
|
{
|
3036
2594
|
}
|
3037
2595
|
|
3038
|
-
executor_type get_executor() const
|
2596
|
+
executor_type get_executor() const noexcept
|
3039
2597
|
{
|
3040
2598
|
return stream_.get_executor();
|
3041
2599
|
}
|
3042
2600
|
|
3043
2601
|
template <typename ReadHandler, typename DynamicBuffer_v2, typename RegEx>
|
3044
|
-
void operator()(
|
3045
|
-
|
2602
|
+
void operator()(ReadHandler&& handler,
|
2603
|
+
DynamicBuffer_v2&& buffers,
|
3046
2604
|
const RegEx& expr) const
|
3047
2605
|
{
|
3048
2606
|
// If you get an error on the following line it means that your handler
|
@@ -3051,9 +2609,9 @@ namespace detail
|
|
3051
2609
|
|
3052
2610
|
non_const_lvalue<ReadHandler> handler2(handler);
|
3053
2611
|
read_until_expr_op_v2<AsyncReadStream,
|
3054
|
-
|
3055
|
-
RegEx,
|
3056
|
-
stream_,
|
2612
|
+
decay_t<DynamicBuffer_v2>,
|
2613
|
+
RegEx, decay_t<ReadHandler>>(
|
2614
|
+
stream_, static_cast<DynamicBuffer_v2&&>(buffers),
|
3057
2615
|
expr, handler2.value)(boost::system::error_code(), 0, 1);
|
3058
2616
|
}
|
3059
2617
|
|
@@ -3073,20 +2631,18 @@ struct associator<Associator,
|
|
3073
2631
|
DefaultCandidate>
|
3074
2632
|
: Associator<ReadHandler, DefaultCandidate>
|
3075
2633
|
{
|
3076
|
-
static typename Associator<ReadHandler, DefaultCandidate>::type
|
3077
|
-
|
3078
|
-
DynamicBuffer_v2, RegEx, ReadHandler>& h)
|
2634
|
+
static typename Associator<ReadHandler, DefaultCandidate>::type get(
|
2635
|
+
const detail::read_until_expr_op_v2<AsyncReadStream,
|
2636
|
+
DynamicBuffer_v2, RegEx, ReadHandler>& h) noexcept
|
3079
2637
|
{
|
3080
2638
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_);
|
3081
2639
|
}
|
3082
2640
|
|
3083
|
-
static
|
3084
|
-
|
3085
|
-
get(const detail::read_until_expr_op_v2<AsyncReadStream,
|
2641
|
+
static auto get(
|
2642
|
+
const detail::read_until_expr_op_v2<AsyncReadStream,
|
3086
2643
|
DynamicBuffer_v2, RegEx, ReadHandler>& h,
|
3087
|
-
const DefaultCandidate& c)
|
3088
|
-
|
3089
|
-
Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)))
|
2644
|
+
const DefaultCandidate& c) noexcept
|
2645
|
+
-> decltype(Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c))
|
3090
2646
|
{
|
3091
2647
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
|
3092
2648
|
}
|
@@ -3094,26 +2650,24 @@ struct associator<Associator,
|
|
3094
2650
|
|
3095
2651
|
#endif // !defined(GENERATING_DOCUMENTATION)
|
3096
2652
|
|
3097
|
-
template <typename AsyncReadStream, typename DynamicBuffer_v2,
|
2653
|
+
template <typename AsyncReadStream, typename DynamicBuffer_v2, typename Traits,
|
3098
2654
|
BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
|
3099
2655
|
std::size_t)) ReadToken>
|
3100
|
-
|
3101
|
-
|
3102
|
-
|
3103
|
-
const boost::regex& expr, BOOST_ASIO_MOVE_ARG(ReadToken) token,
|
3104
|
-
typename constraint<
|
2656
|
+
inline auto async_read_until(AsyncReadStream& s, DynamicBuffer_v2 buffers,
|
2657
|
+
const boost::basic_regex<char, Traits>& expr, ReadToken&& token,
|
2658
|
+
constraint_t<
|
3105
2659
|
is_dynamic_buffer_v2<DynamicBuffer_v2>::value
|
3106
|
-
|
3107
|
-
|
2660
|
+
>)
|
2661
|
+
-> decltype(
|
3108
2662
|
async_initiate<ReadToken,
|
3109
2663
|
void (boost::system::error_code, std::size_t)>(
|
3110
|
-
declval<detail::initiate_async_read_until_expr_v2<AsyncReadStream
|
3111
|
-
token,
|
2664
|
+
declval<detail::initiate_async_read_until_expr_v2<AsyncReadStream>>(),
|
2665
|
+
token, static_cast<DynamicBuffer_v2&&>(buffers), expr))
|
3112
2666
|
{
|
3113
2667
|
return async_initiate<ReadToken,
|
3114
2668
|
void (boost::system::error_code, std::size_t)>(
|
3115
2669
|
detail::initiate_async_read_until_expr_v2<AsyncReadStream>(s),
|
3116
|
-
token,
|
2670
|
+
token, static_cast<DynamicBuffer_v2&&>(buffers), expr);
|
3117
2671
|
}
|
3118
2672
|
|
3119
2673
|
#endif // defined(BOOST_ASIO_HAS_BOOST_REGEX)
|
@@ -3128,21 +2682,20 @@ namespace detail
|
|
3128
2682
|
public:
|
3129
2683
|
template <typename BufferSequence>
|
3130
2684
|
read_until_match_op_v2(AsyncReadStream& stream,
|
3131
|
-
|
2685
|
+
BufferSequence&& buffers,
|
3132
2686
|
MatchCondition match_condition, ReadHandler& handler)
|
3133
2687
|
: base_from_cancellation_state<ReadHandler>(
|
3134
2688
|
handler, enable_partial_cancellation()),
|
3135
2689
|
stream_(stream),
|
3136
|
-
buffers_(
|
2690
|
+
buffers_(static_cast<BufferSequence&&>(buffers)),
|
3137
2691
|
match_condition_(match_condition),
|
3138
2692
|
start_(0),
|
3139
2693
|
search_position_(0),
|
3140
2694
|
bytes_to_read_(0),
|
3141
|
-
handler_(
|
2695
|
+
handler_(static_cast<ReadHandler&&>(handler))
|
3142
2696
|
{
|
3143
2697
|
}
|
3144
2698
|
|
3145
|
-
#if defined(BOOST_ASIO_HAS_MOVE)
|
3146
2699
|
read_until_match_op_v2(const read_until_match_op_v2& other)
|
3147
2700
|
: base_from_cancellation_state<ReadHandler>(other),
|
3148
2701
|
stream_(other.stream_),
|
@@ -3157,18 +2710,16 @@ namespace detail
|
|
3157
2710
|
|
3158
2711
|
read_until_match_op_v2(read_until_match_op_v2&& other)
|
3159
2712
|
: base_from_cancellation_state<ReadHandler>(
|
3160
|
-
|
3161
|
-
ReadHandler>)(other)),
|
2713
|
+
static_cast<base_from_cancellation_state<ReadHandler>&&>(other)),
|
3162
2714
|
stream_(other.stream_),
|
3163
|
-
buffers_(
|
2715
|
+
buffers_(static_cast<DynamicBuffer_v2&&>(other.buffers_)),
|
3164
2716
|
match_condition_(other.match_condition_),
|
3165
2717
|
start_(other.start_),
|
3166
2718
|
search_position_(other.search_position_),
|
3167
2719
|
bytes_to_read_(other.bytes_to_read_),
|
3168
|
-
handler_(
|
2720
|
+
handler_(static_cast<ReadHandler&&>(other.handler_))
|
3169
2721
|
{
|
3170
2722
|
}
|
3171
|
-
#endif // defined(BOOST_ASIO_HAS_MOVE)
|
3172
2723
|
|
3173
2724
|
void operator()(boost::system::error_code ec,
|
3174
2725
|
std::size_t bytes_transferred, int start = 0)
|
@@ -3242,7 +2793,7 @@ namespace detail
|
|
3242
2793
|
BOOST_ASIO_HANDLER_LOCATION((
|
3243
2794
|
__FILE__, __LINE__, "async_read_until"));
|
3244
2795
|
stream_.async_read_some(buffers_.data(pos, bytes_to_read_),
|
3245
|
-
|
2796
|
+
static_cast<read_until_match_op_v2&&>(*this));
|
3246
2797
|
}
|
3247
2798
|
return; default:
|
3248
2799
|
buffers_.shrink(bytes_to_read_ - bytes_transferred);
|
@@ -3263,7 +2814,7 @@ namespace detail
|
|
3263
2814
|
(ec || search_position_ == not_found)
|
3264
2815
|
? 0 : search_position_;
|
3265
2816
|
|
3266
|
-
|
2817
|
+
static_cast<ReadHandler&&>(handler_)(result_ec, result_n);
|
3267
2818
|
}
|
3268
2819
|
}
|
3269
2820
|
|
@@ -3277,36 +2828,6 @@ namespace detail
|
|
3277
2828
|
ReadHandler handler_;
|
3278
2829
|
};
|
3279
2830
|
|
3280
|
-
template <typename AsyncReadStream, typename DynamicBuffer_v2,
|
3281
|
-
typename MatchCondition, typename ReadHandler>
|
3282
|
-
inline asio_handler_allocate_is_deprecated
|
3283
|
-
asio_handler_allocate(std::size_t size,
|
3284
|
-
read_until_match_op_v2<AsyncReadStream, DynamicBuffer_v2,
|
3285
|
-
MatchCondition, ReadHandler>* this_handler)
|
3286
|
-
{
|
3287
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
3288
|
-
boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_);
|
3289
|
-
return asio_handler_allocate_is_no_longer_used();
|
3290
|
-
#else // defined(BOOST_ASIO_NO_DEPRECATED)
|
3291
|
-
return boost_asio_handler_alloc_helpers::allocate(
|
3292
|
-
size, this_handler->handler_);
|
3293
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
3294
|
-
}
|
3295
|
-
|
3296
|
-
template <typename AsyncReadStream, typename DynamicBuffer_v2,
|
3297
|
-
typename MatchCondition, typename ReadHandler>
|
3298
|
-
inline asio_handler_deallocate_is_deprecated
|
3299
|
-
asio_handler_deallocate(void* pointer, std::size_t size,
|
3300
|
-
read_until_match_op_v2<AsyncReadStream, DynamicBuffer_v2,
|
3301
|
-
MatchCondition, ReadHandler>* this_handler)
|
3302
|
-
{
|
3303
|
-
boost_asio_handler_alloc_helpers::deallocate(
|
3304
|
-
pointer, size, this_handler->handler_);
|
3305
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
3306
|
-
return asio_handler_deallocate_is_no_longer_used();
|
3307
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
3308
|
-
}
|
3309
|
-
|
3310
2831
|
template <typename AsyncReadStream, typename DynamicBuffer_v2,
|
3311
2832
|
typename MatchCondition, typename ReadHandler>
|
3312
2833
|
inline bool asio_handler_is_continuation(
|
@@ -3318,36 +2839,6 @@ namespace detail
|
|
3318
2839
|
this_handler->handler_);
|
3319
2840
|
}
|
3320
2841
|
|
3321
|
-
template <typename Function, typename AsyncReadStream,
|
3322
|
-
typename DynamicBuffer_v2, typename MatchCondition,
|
3323
|
-
typename ReadHandler>
|
3324
|
-
inline asio_handler_invoke_is_deprecated
|
3325
|
-
asio_handler_invoke(Function& function,
|
3326
|
-
read_until_match_op_v2<AsyncReadStream, DynamicBuffer_v2,
|
3327
|
-
MatchCondition, ReadHandler>* this_handler)
|
3328
|
-
{
|
3329
|
-
boost_asio_handler_invoke_helpers::invoke(
|
3330
|
-
function, this_handler->handler_);
|
3331
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
3332
|
-
return asio_handler_invoke_is_no_longer_used();
|
3333
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
3334
|
-
}
|
3335
|
-
|
3336
|
-
template <typename Function, typename AsyncReadStream,
|
3337
|
-
typename DynamicBuffer_v2, typename MatchCondition,
|
3338
|
-
typename ReadHandler>
|
3339
|
-
inline asio_handler_invoke_is_deprecated
|
3340
|
-
asio_handler_invoke(const Function& function,
|
3341
|
-
read_until_match_op_v2<AsyncReadStream, DynamicBuffer_v2,
|
3342
|
-
MatchCondition, ReadHandler>* this_handler)
|
3343
|
-
{
|
3344
|
-
boost_asio_handler_invoke_helpers::invoke(
|
3345
|
-
function, this_handler->handler_);
|
3346
|
-
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
3347
|
-
return asio_handler_invoke_is_no_longer_used();
|
3348
|
-
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
3349
|
-
}
|
3350
|
-
|
3351
2842
|
template <typename AsyncReadStream>
|
3352
2843
|
class initiate_async_read_until_match_v2
|
3353
2844
|
{
|
@@ -3359,15 +2850,15 @@ namespace detail
|
|
3359
2850
|
{
|
3360
2851
|
}
|
3361
2852
|
|
3362
|
-
executor_type get_executor() const
|
2853
|
+
executor_type get_executor() const noexcept
|
3363
2854
|
{
|
3364
2855
|
return stream_.get_executor();
|
3365
2856
|
}
|
3366
2857
|
|
3367
2858
|
template <typename ReadHandler,
|
3368
2859
|
typename DynamicBuffer_v2, typename MatchCondition>
|
3369
|
-
void operator()(
|
3370
|
-
|
2860
|
+
void operator()(ReadHandler&& handler,
|
2861
|
+
DynamicBuffer_v2&& buffers,
|
3371
2862
|
MatchCondition match_condition) const
|
3372
2863
|
{
|
3373
2864
|
// If you get an error on the following line it means that your handler
|
@@ -3375,11 +2866,10 @@ namespace detail
|
|
3375
2866
|
BOOST_ASIO_READ_HANDLER_CHECK(ReadHandler, handler) type_check;
|
3376
2867
|
|
3377
2868
|
non_const_lvalue<ReadHandler> handler2(handler);
|
3378
|
-
read_until_match_op_v2<AsyncReadStream,
|
3379
|
-
|
3380
|
-
|
3381
|
-
|
3382
|
-
match_condition, handler2.value)(boost::system::error_code(), 0, 1);
|
2869
|
+
read_until_match_op_v2<AsyncReadStream, decay_t<DynamicBuffer_v2>,
|
2870
|
+
MatchCondition, decay_t<ReadHandler>>(
|
2871
|
+
stream_, static_cast<DynamicBuffer_v2&&>(buffers),
|
2872
|
+
match_condition, handler2.value)(boost::system::error_code(), 0, 1);
|
3383
2873
|
}
|
3384
2874
|
|
3385
2875
|
private:
|
@@ -3398,20 +2888,18 @@ struct associator<Associator,
|
|
3398
2888
|
DefaultCandidate>
|
3399
2889
|
: Associator<ReadHandler, DefaultCandidate>
|
3400
2890
|
{
|
3401
|
-
static typename Associator<ReadHandler, DefaultCandidate>::type
|
3402
|
-
|
3403
|
-
DynamicBuffer_v2, MatchCondition, ReadHandler>& h)
|
2891
|
+
static typename Associator<ReadHandler, DefaultCandidate>::type get(
|
2892
|
+
const detail::read_until_match_op_v2<AsyncReadStream,
|
2893
|
+
DynamicBuffer_v2, MatchCondition, ReadHandler>& h) noexcept
|
3404
2894
|
{
|
3405
2895
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_);
|
3406
2896
|
}
|
3407
2897
|
|
3408
|
-
static
|
3409
|
-
|
3410
|
-
get(const detail::read_until_match_op_v2<AsyncReadStream,
|
2898
|
+
static auto get(
|
2899
|
+
const detail::read_until_match_op_v2<AsyncReadStream,
|
3411
2900
|
DynamicBuffer_v2, MatchCondition, ReadHandler>& h,
|
3412
|
-
const DefaultCandidate& c)
|
3413
|
-
|
3414
|
-
Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)))
|
2901
|
+
const DefaultCandidate& c) noexcept
|
2902
|
+
-> decltype(Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c))
|
3415
2903
|
{
|
3416
2904
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
|
3417
2905
|
}
|
@@ -3423,27 +2911,25 @@ template <typename AsyncReadStream,
|
|
3423
2911
|
typename DynamicBuffer_v2, typename MatchCondition,
|
3424
2912
|
BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code,
|
3425
2913
|
std::size_t)) ReadToken>
|
3426
|
-
|
3427
|
-
|
3428
|
-
|
3429
|
-
MatchCondition match_condition, BOOST_ASIO_MOVE_ARG(ReadToken) token,
|
3430
|
-
typename constraint<
|
2914
|
+
inline auto async_read_until(AsyncReadStream& s, DynamicBuffer_v2 buffers,
|
2915
|
+
MatchCondition match_condition, ReadToken&& token,
|
2916
|
+
constraint_t<
|
3431
2917
|
is_match_condition<MatchCondition>::value
|
3432
|
-
|
3433
|
-
|
2918
|
+
>,
|
2919
|
+
constraint_t<
|
3434
2920
|
is_dynamic_buffer_v2<DynamicBuffer_v2>::value
|
3435
|
-
|
3436
|
-
|
2921
|
+
>)
|
2922
|
+
-> decltype(
|
3437
2923
|
async_initiate<ReadToken,
|
3438
2924
|
void (boost::system::error_code, std::size_t)>(
|
3439
|
-
declval<detail::initiate_async_read_until_match_v2<AsyncReadStream
|
3440
|
-
token,
|
3441
|
-
match_condition))
|
2925
|
+
declval<detail::initiate_async_read_until_match_v2<AsyncReadStream>>(),
|
2926
|
+
token, static_cast<DynamicBuffer_v2&&>(buffers),
|
2927
|
+
match_condition))
|
3442
2928
|
{
|
3443
2929
|
return async_initiate<ReadToken,
|
3444
2930
|
void (boost::system::error_code, std::size_t)>(
|
3445
2931
|
detail::initiate_async_read_until_match_v2<AsyncReadStream>(s),
|
3446
|
-
token,
|
2932
|
+
token, static_cast<DynamicBuffer_v2&&>(buffers),
|
3447
2933
|
match_condition);
|
3448
2934
|
}
|
3449
2935
|
|