passenger 6.0.16 → 6.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +22 -1
- data/build/integration_tests.rb +6 -6
- data/build/ruby_tests.rb +1 -1
- data/build/test_basics.rb +0 -1
- data/src/agent/Core/Config.h +1 -1
- data/src/agent/Core/Controller/Config.h +1 -1
- data/src/agent/Core/SpawningKit/PipeWatcher.h +18 -3
- data/src/agent/Watchdog/Config.h +1 -1
- data/src/cxx_supportlib/Constants.h +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/align/aligned_alloc.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/array.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_executor.hpp +344 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_handler.hpp +686 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_io_executor.hpp +56 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_allocator.hpp +81 -25
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_cancellation_slot.hpp +68 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_executor.hpp +46 -11
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_datagram_socket.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_deadline_timer.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_file.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_random_access_file.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_raw_socket.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_readable_pipe.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_seq_packet_socket.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_serial_port.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_signal_set.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_acceptor.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_file.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_socket.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_waitable_timer.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_writable_pipe.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_allocator.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_cancellation_slot.hpp +14 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_executor.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/compose.hpp +30 -305
- data/src/cxx_supportlib/vendor-modified/boost/asio/consign.hpp +90 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/defer.hpp +17 -18
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bind_handler.hpp +98 -24
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/composed_work.hpp +330 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/config.hpp +81 -15
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_alloc_helpers.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_work.hpp +19 -11
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/descriptor_ops.ipp +37 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/handler_tracking.ipp +3 -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/socket_ops.ipp +10 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.hpp +14 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/memory.hpp +18 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/utility.hpp +1 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/work_dispatcher.hpp +7 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/dispatch.hpp +4 -14
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/allocator.hpp +22 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/any_executor.hpp +447 -142
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking.hpp +57 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking_adaptation.hpp +51 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_execute.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_guarantee.hpp +41 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/connect.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context.hpp +13 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context_as.hpp +13 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_operation.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/execute.hpp +9 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/executor.hpp +11 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/mapping.hpp +52 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/occupancy.hpp +13 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/operation_state.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/outstanding_work.hpp +39 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/receiver.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/relationship.hpp +39 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/schedule.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/scheduler.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/sender.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_done.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_error.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_value.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/start.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/submit.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/executor_work_guard.hpp +6 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_channel.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_concurrent_channel.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_traits.hpp +70 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_composed.hpp +146 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro.hpp +35 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_handler.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_operation.hpp +7 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_service.hpp +180 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_completion_handler.hpp +171 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_promise_allocator.hpp +89 -66
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/partial_promise.hpp +66 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/as_single.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/co_composed.hpp +1134 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/coro.hpp +130 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/parallel_group.hpp +377 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/promise.hpp +168 -29
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_coro.hpp +149 -203
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_promise.hpp +68 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/parallel_group.hpp +256 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/promise.hpp +76 -80
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_coro.hpp +40 -14
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_promise.hpp +113 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_completion_executor.ipp +132 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_io_executor.ipp +12 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/append.hpp +12 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/as_tuple.hpp +12 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_read_stream.hpp +25 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_write_stream.hpp +25 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/co_spawn.hpp +34 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect.hpp +28 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/consign.hpp +204 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/defer.hpp +33 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/deferred.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/dispatch.hpp +21 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/handler_alloc_hook.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/post.hpp +33 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/prepend.hpp +12 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read.hpp +40 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_at.hpp +27 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_until.hpp +104 -24
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/redirect_error.hpp +12 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/spawn.hpp +70 -15
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_future.hpp +25 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write.hpp +38 -30
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write_at.hpp +27 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_context.hpp +0 -13
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.ipp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.ipp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_descriptor.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_stream_descriptor.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/post.hpp +17 -18
- data/src/cxx_supportlib/vendor-modified/boost/asio/spawn.hpp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/io.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/strand.hpp +11 -7
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_executor.hpp +0 -13
- data/src/cxx_supportlib/vendor-modified/boost/asio/thread_pool.hpp +23 -18
- data/src/cxx_supportlib/vendor-modified/boost/asio/version.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_object_handle.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_overlapped_handle.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_random_access_handle.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_stream_handle.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/bind/bind.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/chrono/config.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/mac/chrono.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/scan_keyword.hpp +4 -2
- data/src/cxx_supportlib/vendor-modified/boost/chrono/duration.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_io.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_put.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_units.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/time_point_io.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/utility/ios_base_state_ptr.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/chrono/time_point.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/details.hpp +5 -1
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang.hpp +10 -3
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang_version.hpp +9 -3
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/gcc.hpp +9 -3
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/sunpro_cc.hpp +6 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/visualc.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/xlcpp.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/detail/suffix.hpp +33 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/header_deprecated.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libcpp.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libstdcpp3.hpp +4 -2
- data/src/cxx_supportlib/vendor-modified/boost/container/allocator.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/container/container_fwd.hpp +29 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/deque.hpp +13 -13
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/advanced_insert_int.hpp +80 -95
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_begin.hpp +10 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_end.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/copy_move_algo.hpp +738 -34
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/destroyers.hpp +38 -10
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/flat_tree.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/iterator.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/workaround.hpp +3 -4
- data/src/cxx_supportlib/vendor-modified/boost/container/devector.hpp +1150 -1213
- data/src/cxx_supportlib/vendor-modified/boost/container/node_allocator.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/container/options.hpp +104 -12
- data/src/cxx_supportlib/vendor-modified/boost/container/stable_vector.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/string.hpp +11 -1
- data/src/cxx_supportlib/vendor-modified/boost/container/vector.hpp +31 -331
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_mix.hpp +113 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_range.hpp +173 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_tuple.hpp +133 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash.hpp +461 -566
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash_fwd.hpp +24 -24
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_contiguous_range.hpp +91 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_described_class.hpp +38 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_range.hpp +73 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_unordered_range.hpp +39 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/bit.hpp +32 -4
- data/src/cxx_supportlib/vendor-modified/boost/core/detail/string_view.hpp +16 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/empty_value.hpp +16 -16
- data/src/cxx_supportlib/vendor-modified/boost/core/fclose_deleter.hpp +46 -0
- data/src/cxx_supportlib/vendor-modified/boost/date_time/date.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/formatters.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/formatters_limited.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_date.hpp +12 -13
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/parsers.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian_calendar.ipp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/date_time/iso_format.hpp +13 -13
- data/src/cxx_supportlib/vendor-modified/boost/date_time/local_time/local_date_time.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_formatters.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_formatters_limited.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/date_time/special_values_parser.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/date_time/time_facet.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/date_time/time_parsing.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/describe/bases.hpp +50 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/detail/config.hpp +40 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/detail/cx_streq.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/detail/void_t.hpp +32 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/members.hpp +159 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/modifiers.hpp +33 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree_algorithms.hpp +9 -9
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree_algorithms.hpp +45 -45
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/any_node_and_algorithms.hpp +8 -8
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/bstree_algorithms_base.hpp +37 -38
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/iterator.hpp +16 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/workaround.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/hashtable.hpp +145 -90
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/pack_options.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree_algorithms.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree_algorithms.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree_algorithms.hpp +11 -9
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_algorithms.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/iterator/iterator_facade.hpp +106 -25
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical_streams.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_numeric.hpp +8 -5
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_unsigned_converters.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/adaptive_sort_merge.hpp +4 -2
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/pdqsort.hpp +2 -1
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/type_traits.hpp +8 -4
- data/src/cxx_supportlib/vendor-modified/boost/mp11/bind.hpp +111 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/version.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/int_float_mixture.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/sign_mixture.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/udt_builtin_mixture.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/has_opt.hpp +6 -2
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp +11 -2
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/intrusive_ptr.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/config.hpp +7 -1
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category_impl.hpp +10 -1
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_code.hpp +38 -43
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_condition.hpp +52 -0
- data/src/cxx_supportlib/vendor-modified/boost/throw_exception.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_ptr_helper.hpp +27 -27
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp +27 -27
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/intrinsics.hpp +22 -8
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/fca.hpp +37 -7
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa.hpp +1921 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/implementation.hpp +66 -82
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/prime_fmod.hpp +6 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/type_traits.hpp +109 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/xmx.hpp +75 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/hash_traits.hpp +45 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map.hpp +732 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map_fwd.hpp +49 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set.hpp +586 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set_fwd.hpp +49 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map.hpp +166 -66
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set.hpp +145 -28
- data/src/cxx_supportlib/vendor-modified/boost/version.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/md5.hpp +1 -1
- data/src/ruby_native_extension/extconf.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger.rb +5 -5
- metadata +36 -19
- data/src/cxx_supportlib/vendor-modified/boost/align/align.hpp +0 -19
- data/src/cxx_supportlib/vendor-modified/boost/align/alignment_of.hpp +0 -54
- data/src/cxx_supportlib/vendor-modified/boost/align/alignment_of_forward.hpp +0 -20
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/align_cxx11.hpp +0 -21
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/aligned_alloc.hpp +0 -52
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/alignment_of.hpp +0 -31
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/alignment_of_cxx11.hpp +0 -23
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/element_type.hpp +0 -91
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/integral_constant.hpp +0 -53
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/min_size.hpp +0 -26
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/completion_handler_erasure.hpp +0 -196
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/compose.hpp +0 -709
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/float_functions.hpp +0 -336
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_float.hpp +0 -271
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/limits.hpp +0 -62
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/extensions.hpp +0 -361
- data/src/cxx_supportlib/vendor-modified/boost/detail/container_fwd.hpp +0 -157
@@ -1,20 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright 2014 Glen Joseph Fernandes
|
3
|
-
(glenjofe@gmail.com)
|
4
|
-
|
5
|
-
Distributed under the Boost Software License, Version 1.0.
|
6
|
-
(http://www.boost.org/LICENSE_1_0.txt)
|
7
|
-
*/
|
8
|
-
#ifndef BOOST_ALIGN_ALIGNMENT_OF_FORWARD_HPP
|
9
|
-
#define BOOST_ALIGN_ALIGNMENT_OF_FORWARD_HPP
|
10
|
-
|
11
|
-
namespace boost {
|
12
|
-
namespace alignment {
|
13
|
-
|
14
|
-
template<class T>
|
15
|
-
struct alignment_of;
|
16
|
-
|
17
|
-
} /* alignment */
|
18
|
-
} /* boost */
|
19
|
-
|
20
|
-
#endif
|
@@ -1,21 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright 2014 Glen Joseph Fernandes
|
3
|
-
(glenjofe@gmail.com)
|
4
|
-
|
5
|
-
Distributed under the Boost Software License, Version 1.0.
|
6
|
-
(http://www.boost.org/LICENSE_1_0.txt)
|
7
|
-
*/
|
8
|
-
#ifndef BOOST_ALIGN_DETAIL_ALIGN_CXX11_HPP
|
9
|
-
#define BOOST_ALIGN_DETAIL_ALIGN_CXX11_HPP
|
10
|
-
|
11
|
-
#include <memory>
|
12
|
-
|
13
|
-
namespace boost {
|
14
|
-
namespace alignment {
|
15
|
-
|
16
|
-
using std::align;
|
17
|
-
|
18
|
-
} /* alignment */
|
19
|
-
} /* boost */
|
20
|
-
|
21
|
-
#endif
|
@@ -1,52 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright 2014-2015 Glen Joseph Fernandes
|
3
|
-
(glenjofe@gmail.com)
|
4
|
-
|
5
|
-
Distributed under the Boost Software License, Version 1.0.
|
6
|
-
(http://www.boost.org/LICENSE_1_0.txt)
|
7
|
-
*/
|
8
|
-
#ifndef BOOST_ALIGN_DETAIL_ALIGNED_ALLOC_HPP
|
9
|
-
#define BOOST_ALIGN_DETAIL_ALIGNED_ALLOC_HPP
|
10
|
-
|
11
|
-
#include <boost/align/detail/is_alignment.hpp>
|
12
|
-
#include <boost/align/align.hpp>
|
13
|
-
#include <boost/align/alignment_of.hpp>
|
14
|
-
#include <boost/assert.hpp>
|
15
|
-
#include <cstdlib>
|
16
|
-
|
17
|
-
namespace boost {
|
18
|
-
namespace alignment {
|
19
|
-
|
20
|
-
inline void*
|
21
|
-
aligned_alloc(std::size_t alignment, std::size_t size) BOOST_NOEXCEPT
|
22
|
-
{
|
23
|
-
BOOST_ASSERT(detail::is_alignment(alignment));
|
24
|
-
enum {
|
25
|
-
N = alignment_of<void*>::value
|
26
|
-
};
|
27
|
-
if (alignment < N) {
|
28
|
-
alignment = N;
|
29
|
-
}
|
30
|
-
std::size_t n = size + alignment - N;
|
31
|
-
void* p = std::malloc(sizeof(void*) + n);
|
32
|
-
if (p) {
|
33
|
-
void* r = static_cast<char*>(p) + sizeof(void*);
|
34
|
-
(void)boost::alignment::align(alignment, size, r, n);
|
35
|
-
*(static_cast<void**>(r) - 1) = p;
|
36
|
-
p = r;
|
37
|
-
}
|
38
|
-
return p;
|
39
|
-
}
|
40
|
-
|
41
|
-
inline void
|
42
|
-
aligned_free(void* ptr) BOOST_NOEXCEPT
|
43
|
-
{
|
44
|
-
if (ptr) {
|
45
|
-
std::free(*(static_cast<void**>(ptr) - 1));
|
46
|
-
}
|
47
|
-
}
|
48
|
-
|
49
|
-
} /* alignment */
|
50
|
-
} /* boost */
|
51
|
-
|
52
|
-
#endif
|
@@ -1,31 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright 2014-2015 Glen Joseph Fernandes
|
3
|
-
(glenjofe@gmail.com)
|
4
|
-
|
5
|
-
Distributed under the Boost Software License, Version 1.0.
|
6
|
-
(http://www.boost.org/LICENSE_1_0.txt)
|
7
|
-
*/
|
8
|
-
#ifndef BOOST_ALIGN_DETAIL_ALIGNMENT_OF_HPP
|
9
|
-
#define BOOST_ALIGN_DETAIL_ALIGNMENT_OF_HPP
|
10
|
-
|
11
|
-
#include <boost/align/detail/min_size.hpp>
|
12
|
-
|
13
|
-
namespace boost {
|
14
|
-
namespace alignment {
|
15
|
-
namespace detail {
|
16
|
-
|
17
|
-
template<class T>
|
18
|
-
struct offset_value {
|
19
|
-
char value;
|
20
|
-
T object;
|
21
|
-
};
|
22
|
-
|
23
|
-
template<class T>
|
24
|
-
struct alignment_of
|
25
|
-
: min_size<sizeof(T), sizeof(offset_value<T>) - sizeof(T)> { };
|
26
|
-
|
27
|
-
} /* detail */
|
28
|
-
} /* alignment */
|
29
|
-
} /* boost */
|
30
|
-
|
31
|
-
#endif
|
@@ -1,23 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright 2014 Glen Joseph Fernandes
|
3
|
-
(glenjofe@gmail.com)
|
4
|
-
|
5
|
-
Distributed under the Boost Software License, Version 1.0.
|
6
|
-
(http://www.boost.org/LICENSE_1_0.txt)
|
7
|
-
*/
|
8
|
-
#ifndef BOOST_ALIGN_DETAIL_ALIGNMENT_OF_CXX11_HPP
|
9
|
-
#define BOOST_ALIGN_DETAIL_ALIGNMENT_OF_CXX11_HPP
|
10
|
-
|
11
|
-
#include <type_traits>
|
12
|
-
|
13
|
-
namespace boost {
|
14
|
-
namespace alignment {
|
15
|
-
namespace detail {
|
16
|
-
|
17
|
-
using std::alignment_of;
|
18
|
-
|
19
|
-
} /* detail */
|
20
|
-
} /* alignment */
|
21
|
-
} /* boost */
|
22
|
-
|
23
|
-
#endif
|
@@ -1,91 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright 2015 Glen Joseph Fernandes
|
3
|
-
(glenjofe@gmail.com)
|
4
|
-
|
5
|
-
Distributed under the Boost Software License, Version 1.0.
|
6
|
-
(http://www.boost.org/LICENSE_1_0.txt)
|
7
|
-
*/
|
8
|
-
#ifndef BOOST_ALIGN_DETAIL_ELEMENT_TYPE_HPP
|
9
|
-
#define BOOST_ALIGN_DETAIL_ELEMENT_TYPE_HPP
|
10
|
-
|
11
|
-
#include <boost/config.hpp>
|
12
|
-
|
13
|
-
#if !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)
|
14
|
-
#include <type_traits>
|
15
|
-
#else
|
16
|
-
#include <cstddef>
|
17
|
-
#endif
|
18
|
-
|
19
|
-
namespace boost {
|
20
|
-
namespace alignment {
|
21
|
-
namespace detail {
|
22
|
-
|
23
|
-
#if !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)
|
24
|
-
using std::remove_reference;
|
25
|
-
using std::remove_all_extents;
|
26
|
-
using std::remove_cv;
|
27
|
-
#else
|
28
|
-
template<class T>
|
29
|
-
struct remove_reference {
|
30
|
-
typedef T type;
|
31
|
-
};
|
32
|
-
|
33
|
-
template<class T>
|
34
|
-
struct remove_reference<T&> {
|
35
|
-
typedef T type;
|
36
|
-
};
|
37
|
-
|
38
|
-
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
39
|
-
template<class T>
|
40
|
-
struct remove_reference<T&&> {
|
41
|
-
typedef T type;
|
42
|
-
};
|
43
|
-
#endif
|
44
|
-
|
45
|
-
template<class T>
|
46
|
-
struct remove_all_extents {
|
47
|
-
typedef T type;
|
48
|
-
};
|
49
|
-
|
50
|
-
template<class T>
|
51
|
-
struct remove_all_extents<T[]> {
|
52
|
-
typedef typename remove_all_extents<T>::type type;
|
53
|
-
};
|
54
|
-
|
55
|
-
template<class T, std::size_t N>
|
56
|
-
struct remove_all_extents<T[N]> {
|
57
|
-
typedef typename remove_all_extents<T>::type type;
|
58
|
-
};
|
59
|
-
|
60
|
-
template<class T>
|
61
|
-
struct remove_cv {
|
62
|
-
typedef T type;
|
63
|
-
};
|
64
|
-
|
65
|
-
template<class T>
|
66
|
-
struct remove_cv<const T> {
|
67
|
-
typedef T type;
|
68
|
-
};
|
69
|
-
|
70
|
-
template<class T>
|
71
|
-
struct remove_cv<volatile T> {
|
72
|
-
typedef T type;
|
73
|
-
};
|
74
|
-
|
75
|
-
template<class T>
|
76
|
-
struct remove_cv<const volatile T> {
|
77
|
-
typedef T type;
|
78
|
-
};
|
79
|
-
#endif
|
80
|
-
|
81
|
-
template<class T>
|
82
|
-
struct element_type {
|
83
|
-
typedef typename remove_cv<typename remove_all_extents<typename
|
84
|
-
remove_reference<T>::type>::type>::type type;
|
85
|
-
};
|
86
|
-
|
87
|
-
} /* detail */
|
88
|
-
} /* alignment */
|
89
|
-
} /* boost */
|
90
|
-
|
91
|
-
#endif
|
@@ -1,53 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright 2014-2016 Glen Joseph Fernandes
|
3
|
-
(glenjofe@gmail.com)
|
4
|
-
|
5
|
-
Distributed under the Boost Software License, Version 1.0.
|
6
|
-
(http://www.boost.org/LICENSE_1_0.txt)
|
7
|
-
*/
|
8
|
-
#ifndef BOOST_ALIGN_DETAIL_INTEGRAL_CONSTANT_HPP
|
9
|
-
#define BOOST_ALIGN_DETAIL_INTEGRAL_CONSTANT_HPP
|
10
|
-
|
11
|
-
#include <boost/config.hpp>
|
12
|
-
|
13
|
-
#if !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)
|
14
|
-
#include <type_traits>
|
15
|
-
#endif
|
16
|
-
|
17
|
-
namespace boost {
|
18
|
-
namespace alignment {
|
19
|
-
namespace detail {
|
20
|
-
|
21
|
-
#if !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)
|
22
|
-
using std::integral_constant;
|
23
|
-
using std::true_type;
|
24
|
-
using std::false_type;
|
25
|
-
#else
|
26
|
-
template<class T, T Value>
|
27
|
-
struct integral_constant {
|
28
|
-
typedef T value_type;
|
29
|
-
typedef integral_constant type;
|
30
|
-
|
31
|
-
BOOST_CONSTEXPR operator value_type() const BOOST_NOEXCEPT {
|
32
|
-
return Value;
|
33
|
-
}
|
34
|
-
|
35
|
-
BOOST_CONSTEXPR value_type operator()() const BOOST_NOEXCEPT {
|
36
|
-
return Value;
|
37
|
-
}
|
38
|
-
|
39
|
-
BOOST_STATIC_CONSTEXPR T value = Value;
|
40
|
-
};
|
41
|
-
|
42
|
-
template<class T, T Value>
|
43
|
-
BOOST_CONSTEXPR_OR_CONST T integral_constant<T, Value>::value;
|
44
|
-
|
45
|
-
typedef integral_constant<bool, true> true_type;
|
46
|
-
typedef integral_constant<bool, false> false_type;
|
47
|
-
#endif
|
48
|
-
|
49
|
-
} /* detail */
|
50
|
-
} /* alignment */
|
51
|
-
} /* boost */
|
52
|
-
|
53
|
-
#endif
|
@@ -1,26 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright 2014 Glen Joseph Fernandes
|
3
|
-
(glenjofe@gmail.com)
|
4
|
-
|
5
|
-
Distributed under the Boost Software License, Version 1.0.
|
6
|
-
(http://www.boost.org/LICENSE_1_0.txt)
|
7
|
-
*/
|
8
|
-
#ifndef BOOST_ALIGN_DETAIL_MIN_SIZE_HPP
|
9
|
-
#define BOOST_ALIGN_DETAIL_MIN_SIZE_HPP
|
10
|
-
|
11
|
-
#include <boost/align/detail/integral_constant.hpp>
|
12
|
-
#include <cstddef>
|
13
|
-
|
14
|
-
namespace boost {
|
15
|
-
namespace alignment {
|
16
|
-
namespace detail {
|
17
|
-
|
18
|
-
template<std::size_t A, std::size_t B>
|
19
|
-
struct min_size
|
20
|
-
: integral_constant<std::size_t, (A < B) ? A : B> { };
|
21
|
-
|
22
|
-
} /* detail */
|
23
|
-
} /* alignment */
|
24
|
-
} /* boost */
|
25
|
-
|
26
|
-
#endif
|
@@ -1,196 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// experimental/detail/completion_handler_erasure.hpp
|
3
|
-
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
4
|
-
//
|
5
|
-
// Copyright (c) 2021-2022 Klemens D. Morgenstern
|
6
|
-
// (klemens dot morgenstern at gmx dot net)
|
7
|
-
//
|
8
|
-
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
9
|
-
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
10
|
-
//
|
11
|
-
|
12
|
-
#ifndef BOOST_ASIO_EXPERIMENTAL_DETAIL_COMPLETION_HANDLER_ERASURE_HPP
|
13
|
-
#define BOOST_ASIO_EXPERIMENTAL_DETAIL_COMPLETION_HANDLER_ERASURE_HPP
|
14
|
-
|
15
|
-
#include <new>
|
16
|
-
#include <boost/asio/associated_allocator.hpp>
|
17
|
-
#include <boost/asio/dispatch.hpp>
|
18
|
-
|
19
|
-
namespace boost {
|
20
|
-
namespace asio {
|
21
|
-
|
22
|
-
class any_io_executor;
|
23
|
-
|
24
|
-
namespace experimental {
|
25
|
-
namespace detail {
|
26
|
-
|
27
|
-
template<typename Signature, typename Executor>
|
28
|
-
struct completion_handler_erasure_base;
|
29
|
-
|
30
|
-
template<typename Func, typename Signature, typename Executor>
|
31
|
-
struct completion_handler_erasure_impl;
|
32
|
-
|
33
|
-
template<typename Return, typename... Args, typename Executor>
|
34
|
-
struct completion_handler_erasure_base<Return(Args...), Executor>
|
35
|
-
{
|
36
|
-
Executor executor;
|
37
|
-
|
38
|
-
completion_handler_erasure_base(Executor&& executor)
|
39
|
-
: executor(std::move(executor))
|
40
|
-
{
|
41
|
-
}
|
42
|
-
|
43
|
-
virtual Return call(Args... args) = 0;
|
44
|
-
virtual void destroy() = 0;
|
45
|
-
virtual ~completion_handler_erasure_base() = default;
|
46
|
-
};
|
47
|
-
|
48
|
-
template<typename Func, typename Return, typename... Args, typename Executor>
|
49
|
-
struct completion_handler_erasure_impl<Func, Return(Args...), Executor> final
|
50
|
-
: completion_handler_erasure_base<Return(Args...), Executor>
|
51
|
-
{
|
52
|
-
using allocator_base = typename associated_allocator<Func>::type;
|
53
|
-
using allocator_type =
|
54
|
-
typename std::allocator_traits<allocator_base>::template rebind_alloc<
|
55
|
-
completion_handler_erasure_impl>;
|
56
|
-
|
57
|
-
completion_handler_erasure_impl(Executor&& exec, Func&& func)
|
58
|
-
: completion_handler_erasure_base<Return(Args...), Executor>(
|
59
|
-
std::move(exec)), func(std::move(func))
|
60
|
-
{
|
61
|
-
}
|
62
|
-
|
63
|
-
struct uninit_deleter_t
|
64
|
-
{
|
65
|
-
allocator_type allocator;
|
66
|
-
|
67
|
-
uninit_deleter_t(const Func& func)
|
68
|
-
: allocator(get_associated_allocator(func))
|
69
|
-
{
|
70
|
-
}
|
71
|
-
|
72
|
-
void operator()(completion_handler_erasure_impl* p)
|
73
|
-
{
|
74
|
-
std::allocator_traits<allocator_type>::deallocate(allocator, p, 1);
|
75
|
-
}
|
76
|
-
};
|
77
|
-
|
78
|
-
static completion_handler_erasure_impl* make(Executor exec, Func&& func)
|
79
|
-
{
|
80
|
-
uninit_deleter_t deleter(func);
|
81
|
-
std::unique_ptr<completion_handler_erasure_impl, uninit_deleter_t>
|
82
|
-
uninit_ptr(std::allocator_traits<allocator_type>::allocate(
|
83
|
-
deleter.allocator, 1), deleter);
|
84
|
-
completion_handler_erasure_impl* ptr =
|
85
|
-
new (uninit_ptr.get()) completion_handler_erasure_impl(
|
86
|
-
std::move(exec), std::move(func));
|
87
|
-
uninit_ptr.release();
|
88
|
-
return ptr;
|
89
|
-
}
|
90
|
-
|
91
|
-
struct deleter_t
|
92
|
-
{
|
93
|
-
allocator_type allocator;
|
94
|
-
|
95
|
-
deleter_t(const Func& func)
|
96
|
-
: allocator(get_associated_allocator(func))
|
97
|
-
{
|
98
|
-
}
|
99
|
-
|
100
|
-
void operator()(completion_handler_erasure_impl* p)
|
101
|
-
{
|
102
|
-
std::allocator_traits<allocator_type>::destroy(allocator, p);
|
103
|
-
std::allocator_traits<allocator_type>::deallocate(allocator, p, 1);
|
104
|
-
}
|
105
|
-
};
|
106
|
-
|
107
|
-
virtual Return call(Args... args) override
|
108
|
-
{
|
109
|
-
std::unique_ptr<completion_handler_erasure_impl,
|
110
|
-
deleter_t> p(this, deleter_t(func));
|
111
|
-
Func f(std::move(func));
|
112
|
-
p.reset();
|
113
|
-
std::move(f)(std::move(args)...);
|
114
|
-
}
|
115
|
-
|
116
|
-
virtual void destroy() override
|
117
|
-
{
|
118
|
-
std::unique_ptr<completion_handler_erasure_impl,
|
119
|
-
deleter_t>(this, deleter_t(func));
|
120
|
-
}
|
121
|
-
|
122
|
-
Func func;
|
123
|
-
};
|
124
|
-
|
125
|
-
template<typename Signature, typename Executor = any_io_executor>
|
126
|
-
struct completion_handler_erasure;
|
127
|
-
|
128
|
-
template<typename Return, typename... Args, typename Executor>
|
129
|
-
struct completion_handler_erasure<Return(Args...), Executor>
|
130
|
-
{
|
131
|
-
struct deleter_t
|
132
|
-
{
|
133
|
-
void operator()(
|
134
|
-
completion_handler_erasure_base<Return(Args...), Executor>* p)
|
135
|
-
{
|
136
|
-
p->destroy();
|
137
|
-
}
|
138
|
-
};
|
139
|
-
|
140
|
-
completion_handler_erasure(const completion_handler_erasure&) = delete;
|
141
|
-
completion_handler_erasure(completion_handler_erasure&&) = default;
|
142
|
-
completion_handler_erasure& operator=(
|
143
|
-
const completion_handler_erasure&) = delete;
|
144
|
-
completion_handler_erasure& operator=(
|
145
|
-
completion_handler_erasure&&) = default;
|
146
|
-
|
147
|
-
constexpr completion_handler_erasure() = default;
|
148
|
-
|
149
|
-
constexpr completion_handler_erasure(nullptr_t)
|
150
|
-
: completion_handler_erasure()
|
151
|
-
{
|
152
|
-
}
|
153
|
-
|
154
|
-
template<typename Func>
|
155
|
-
completion_handler_erasure(Executor exec, Func&& func)
|
156
|
-
: impl_(completion_handler_erasure_impl<
|
157
|
-
std::decay_t<Func>, Return(Args...), Executor>::make(
|
158
|
-
std::move(exec), std::forward<Func>(func)))
|
159
|
-
{
|
160
|
-
}
|
161
|
-
|
162
|
-
~completion_handler_erasure()
|
163
|
-
{
|
164
|
-
if (impl_)
|
165
|
-
{
|
166
|
-
Executor executor(impl_->executor);
|
167
|
-
boost::asio::dispatch(executor,
|
168
|
-
[impl = std::move(impl_)]() mutable
|
169
|
-
{
|
170
|
-
impl.reset();
|
171
|
-
});
|
172
|
-
}
|
173
|
-
}
|
174
|
-
|
175
|
-
Return operator()(Args... args)
|
176
|
-
{
|
177
|
-
if (impl_)
|
178
|
-
impl_.release()->call(std::move(args)...);
|
179
|
-
}
|
180
|
-
|
181
|
-
constexpr bool operator==(nullptr_t) const noexcept {return impl_ == nullptr;}
|
182
|
-
constexpr bool operator!=(nullptr_t) const noexcept {return impl_ != nullptr;}
|
183
|
-
constexpr bool operator!() const noexcept {return impl_ == nullptr;}
|
184
|
-
|
185
|
-
private:
|
186
|
-
std::unique_ptr<
|
187
|
-
completion_handler_erasure_base<Return(Args...), Executor>, deleter_t>
|
188
|
-
impl_;
|
189
|
-
};
|
190
|
-
|
191
|
-
} // namespace detail
|
192
|
-
} // namespace experimental
|
193
|
-
} // namespace asio
|
194
|
-
} // namespace boost
|
195
|
-
|
196
|
-
#endif // BOOST_ASIO_EXPERIMENTAL_DETAIL_COMPLETION_HANDLER_ERASURE_HPP
|