passenger 6.0.8 → 6.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1145) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +29 -0
  3. data/CONTRIBUTORS +5 -0
  4. data/src/agent/Core/Config.h +1 -1
  5. data/src/agent/Core/Controller/Config.h +1 -1
  6. data/src/agent/Shared/ApplicationPoolApiKey.h +2 -0
  7. data/src/agent/Watchdog/Config.h +1 -1
  8. data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp +27 -27
  9. data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp +1 -1
  10. data/src/apache2_module/DirConfig/AutoGeneratedStruct.h +2 -2
  11. data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h +19 -19
  12. data/src/cxx_supportlib/Constants.h +1 -1
  13. data/src/cxx_supportlib/DataStructures/HashedStaticString.h +2 -0
  14. data/src/cxx_supportlib/FileDescriptor.h +8 -0
  15. data/src/cxx_supportlib/StaticString.h +2 -0
  16. data/src/cxx_supportlib/Utils/HttpConstants.h +1 -1
  17. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/case_conv.hpp +3 -0
  18. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/classification.hpp +2 -0
  19. data/src/cxx_supportlib/vendor-modified/boost/algorithm/string/detail/find_format_all.hpp +2 -0
  20. data/src/cxx_supportlib/vendor-modified/boost/asio.hpp +1 -1
  21. data/src/cxx_supportlib/vendor-modified/boost/asio/any_io_executor.hpp +240 -11
  22. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_allocator.hpp +1 -1
  23. data/src/cxx_supportlib/vendor-modified/boost/asio/associated_executor.hpp +5 -5
  24. data/src/cxx_supportlib/vendor-modified/boost/asio/async_result.hpp +9 -9
  25. data/src/cxx_supportlib/vendor-modified/boost/asio/awaitable.hpp +1 -1
  26. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_datagram_socket.hpp +21 -13
  27. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_deadline_timer.hpp +13 -13
  28. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_io_object.hpp +1 -1
  29. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_raw_socket.hpp +21 -13
  30. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_seq_packet_socket.hpp +20 -13
  31. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_serial_port.hpp +18 -18
  32. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_signal_set.hpp +29 -21
  33. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket.hpp +22 -21
  34. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_acceptor.hpp +58 -51
  35. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_iostream.hpp +1 -1
  36. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_streambuf.hpp +1 -1
  37. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_socket.hpp +20 -13
  38. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf.hpp +1 -1
  39. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf_fwd.hpp +1 -1
  40. data/src/cxx_supportlib/vendor-modified/boost/asio/basic_waitable_timer.hpp +16 -16
  41. data/src/cxx_supportlib/vendor-modified/boost/asio/bind_executor.hpp +5 -5
  42. data/src/cxx_supportlib/vendor-modified/boost/asio/buffer.hpp +25 -25
  43. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream.hpp +1 -1
  44. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream_fwd.hpp +1 -1
  45. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream.hpp +1 -1
  46. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream_fwd.hpp +1 -1
  47. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream.hpp +1 -1
  48. data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream_fwd.hpp +1 -1
  49. data/src/cxx_supportlib/vendor-modified/boost/asio/buffers_iterator.hpp +1 -1
  50. data/src/cxx_supportlib/vendor-modified/boost/asio/co_spawn.hpp +13 -13
  51. data/src/cxx_supportlib/vendor-modified/boost/asio/completion_condition.hpp +1 -1
  52. data/src/cxx_supportlib/vendor-modified/boost/asio/compose.hpp +1 -1
  53. data/src/cxx_supportlib/vendor-modified/boost/asio/connect.hpp +19 -19
  54. data/src/cxx_supportlib/vendor-modified/boost/asio/coroutine.hpp +1 -1
  55. data/src/cxx_supportlib/vendor-modified/boost/asio/deadline_timer.hpp +1 -1
  56. data/src/cxx_supportlib/vendor-modified/boost/asio/defer.hpp +5 -5
  57. data/src/cxx_supportlib/vendor-modified/boost/asio/detached.hpp +3 -3
  58. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array.hpp +1 -1
  59. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array_fwd.hpp +1 -1
  60. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/assert.hpp +1 -1
  61. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/atomic_count.hpp +1 -1
  62. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_completion_cond.hpp +1 -1
  63. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bind_handler.hpp +5 -1
  64. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/blocking_executor_op.hpp +1 -1
  65. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_resize_guard.hpp +1 -1
  66. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_sequence_adapter.hpp +1 -1
  67. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffered_stream_storage.hpp +1 -1
  68. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bulk_executor_op.hpp +1 -1
  69. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/call_stack.hpp +1 -1
  70. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono.hpp +1 -1
  71. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono_time_traits.hpp +1 -1
  72. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_handler.hpp +1 -1
  73. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/concurrency_hint.hpp +1 -1
  74. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_event.hpp +1 -1
  75. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_mutex.hpp +1 -1
  76. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/config.hpp +58 -15
  77. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/consuming_buffers.hpp +1 -1
  78. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstddef.hpp +1 -1
  79. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstdint.hpp +1 -1
  80. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/date_time_fwd.hpp +1 -1
  81. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/deadline_timer_service.hpp +1 -1
  82. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dependent_type.hpp +1 -1
  83. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_ops.hpp +1 -1
  84. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_read_op.hpp +1 -1
  85. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_write_op.hpp +1 -1
  86. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dev_poll_reactor.hpp +1 -1
  87. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/epoll_reactor.hpp +1 -1
  88. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/event.hpp +1 -1
  89. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/eventfd_select_interrupter.hpp +1 -1
  90. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_function.hpp +3 -2
  91. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_op.hpp +1 -1
  92. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fd_set_adapter.hpp +1 -1
  93. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fenced_block.hpp +1 -1
  94. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/functional.hpp +1 -1
  95. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/future.hpp +1 -1
  96. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_arm_fenced_block.hpp +1 -1
  97. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_hppa_fenced_block.hpp +1 -1
  98. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_sync_fenced_block.hpp +1 -1
  99. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/gcc_x86_fenced_block.hpp +1 -1
  100. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/global.hpp +1 -1
  101. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_alloc_helpers.hpp +3 -3
  102. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_cont_helpers.hpp +1 -1
  103. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_invoke_helpers.hpp +1 -1
  104. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_tracking.hpp +1 -1
  105. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_type_requirements.hpp +1 -1
  106. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_work.hpp +88 -12
  107. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/hash_map.hpp +1 -1
  108. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/buffer_sequence_adapter.ipp +1 -1
  109. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/descriptor_ops.ipp +1 -1
  110. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.hpp +1 -1
  111. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.ipp +1 -1
  112. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.hpp +1 -1
  113. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.ipp +1 -1
  114. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/eventfd_select_interrupter.ipp +10 -8
  115. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/handler_tracking.ipp +1 -1
  116. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.hpp +1 -1
  117. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.ipp +1 -1
  118. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/null_event.ipp +1 -1
  119. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/pipe_select_interrupter.ipp +1 -1
  120. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_event.ipp +8 -4
  121. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_mutex.ipp +1 -1
  122. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_thread.ipp +1 -1
  123. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_tss_ptr.ipp +1 -1
  124. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_descriptor_service.ipp +1 -1
  125. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_serial_port_service.ipp +1 -1
  126. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_socket_service_base.ipp +1 -1
  127. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/resolver_service_base.ipp +1 -1
  128. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/scheduler.ipp +6 -1
  129. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.hpp +1 -1
  130. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.ipp +1 -1
  131. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.hpp +1 -1
  132. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.ipp +1 -1
  133. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/signal_set_service.ipp +1 -1
  134. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_ops.ipp +13 -11
  135. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_select_interrupter.ipp +1 -1
  136. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.hpp +7 -40
  137. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.ipp +25 -1
  138. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.hpp +3 -33
  139. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.ipp +29 -5
  140. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/thread_context.ipp +37 -0
  141. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/throw_error.ipp +1 -1
  142. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_ptime.ipp +1 -1
  143. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_set.ipp +1 -1
  144. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_control.hpp +1 -1
  145. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_object_impl.hpp +4 -7
  146. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_buffer_sequence.hpp +1 -1
  147. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_executor.hpp +1 -1
  148. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/keyword_tss_ptr.hpp +1 -1
  149. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/kqueue_reactor.hpp +1 -1
  150. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/local_free_on_block_exit.hpp +1 -1
  151. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/macos_fenced_block.hpp +1 -1
  152. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/memory.hpp +1 -1
  153. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/mutex.hpp +1 -1
  154. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/non_const_lvalue.hpp +1 -1
  155. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/noncopyable.hpp +1 -1
  156. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_event.hpp +1 -1
  157. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_fenced_block.hpp +1 -1
  158. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_global.hpp +1 -1
  159. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_mutex.hpp +1 -1
  160. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_reactor.hpp +1 -1
  161. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_signal_blocker.hpp +1 -1
  162. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_socket_service.hpp +1 -1
  163. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_static_mutex.hpp +1 -1
  164. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_thread.hpp +1 -1
  165. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_tss_ptr.hpp +1 -1
  166. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/object_pool.hpp +1 -1
  167. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/old_win_sdk_compat.hpp +1 -1
  168. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/op_queue.hpp +1 -1
  169. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/operation.hpp +1 -1
  170. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pipe_select_interrupter.hpp +1 -1
  171. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pop_options.hpp +1 -1
  172. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_event.hpp +1 -1
  173. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_fd_set_adapter.hpp +1 -1
  174. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_global.hpp +1 -1
  175. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_mutex.hpp +1 -1
  176. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_signal_blocker.hpp +1 -1
  177. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_static_mutex.hpp +1 -1
  178. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_thread.hpp +1 -1
  179. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_tss_ptr.hpp +1 -1
  180. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/push_options.hpp +7 -1
  181. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_descriptor_service.hpp +1 -1
  182. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_null_buffers_op.hpp +1 -1
  183. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_serial_port_service.hpp +1 -1
  184. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_accept_op.hpp +1 -1
  185. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_connect_op.hpp +1 -1
  186. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recv_op.hpp +1 -1
  187. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvfrom_op.hpp +1 -1
  188. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvmsg_op.hpp +1 -1
  189. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_send_op.hpp +1 -1
  190. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_sendto_op.hpp +1 -1
  191. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service.hpp +1 -1
  192. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service_base.hpp +1 -1
  193. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_wait_op.hpp +1 -1
  194. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor.hpp +1 -1
  195. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_fwd.hpp +1 -1
  196. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op.hpp +1 -1
  197. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op_queue.hpp +1 -1
  198. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/recycling_allocator.hpp +3 -5
  199. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/regex_fwd.hpp +11 -2
  200. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_endpoint_op.hpp +1 -1
  201. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_op.hpp +1 -1
  202. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_query_op.hpp +3 -3
  203. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service.hpp +7 -7
  204. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service_base.hpp +16 -1
  205. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler.hpp +2 -5
  206. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_operation.hpp +1 -1
  207. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_thread_info.hpp +1 -1
  208. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_lock.hpp +1 -1
  209. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_ptr.hpp +1 -1
  210. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_interrupter.hpp +1 -1
  211. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_reactor.hpp +1 -1
  212. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/service_registry.hpp +1 -1
  213. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_blocker.hpp +1 -1
  214. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_handler.hpp +1 -1
  215. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_init.hpp +1 -1
  216. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_op.hpp +1 -1
  217. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_set_service.hpp +1 -1
  218. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_holder.hpp +1 -1
  219. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_ops.hpp +1 -1
  220. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_option.hpp +1 -1
  221. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_select_interrupter.hpp +1 -1
  222. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_types.hpp +2 -1
  223. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/solaris_fenced_block.hpp +1 -1
  224. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/source_location.hpp +1 -1
  225. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/static_mutex.hpp +1 -1
  226. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_event.hpp +2 -2
  227. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_fenced_block.hpp +1 -1
  228. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_global.hpp +1 -1
  229. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_mutex.hpp +1 -1
  230. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_static_mutex.hpp +1 -1
  231. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_thread.hpp +1 -1
  232. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_executor_service.hpp +8 -1
  233. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_service.hpp +4 -5
  234. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/string_view.hpp +1 -1
  235. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread.hpp +5 -5
  236. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_context.hpp +10 -1
  237. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_group.hpp +5 -1
  238. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_info_base.hpp +9 -2
  239. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_error.hpp +1 -1
  240. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_exception.hpp +1 -1
  241. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue.hpp +1 -1
  242. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_base.hpp +1 -1
  243. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_ptime.hpp +1 -1
  244. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_set.hpp +1 -1
  245. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler.hpp +1 -1
  246. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler_fwd.hpp +1 -1
  247. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/tss_ptr.hpp +1 -1
  248. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/type_traits.hpp +9 -1
  249. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/variadic_templates.hpp +1 -1
  250. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_handler.hpp +1 -1
  251. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_op.hpp +1 -1
  252. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/winsock_init.hpp +1 -1
  253. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/work_dispatcher.hpp +1 -1
  254. data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wrapped_handler.hpp +1 -1
  255. data/src/cxx_supportlib/vendor-modified/boost/asio/dispatch.hpp +5 -5
  256. data/src/cxx_supportlib/vendor-modified/boost/asio/error.hpp +1 -1
  257. data/src/cxx_supportlib/vendor-modified/boost/asio/execution.hpp +1 -1
  258. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/allocator.hpp +107 -19
  259. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/any_executor.hpp +194 -112
  260. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bad_executor.hpp +1 -1
  261. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking.hpp +283 -83
  262. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking_adaptation.hpp +218 -70
  263. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_execute.hpp +47 -42
  264. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_guarantee.hpp +287 -90
  265. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/connect.hpp +39 -36
  266. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context.hpp +62 -14
  267. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context_as.hpp +29 -9
  268. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_invocable.hpp +1 -1
  269. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_operation.hpp +1 -1
  270. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_receiver.hpp +1 -1
  271. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/bulk_sender.hpp +1 -1
  272. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/submit_receiver.hpp +1 -1
  273. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/void_receiver.hpp +1 -1
  274. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/execute.hpp +67 -48
  275. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/executor.hpp +39 -25
  276. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/impl/bad_executor.ipp +1 -1
  277. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/impl/receiver_invocation_error.ipp +1 -1
  278. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/invocable_archetype.hpp +1 -1
  279. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/mapping.hpp +281 -82
  280. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/occupancy.hpp +62 -14
  281. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/operation_state.hpp +1 -1
  282. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/outstanding_work.hpp +216 -70
  283. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/prefer_only.hpp +7 -3
  284. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/receiver.hpp +1 -1
  285. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/receiver_invocation_error.hpp +1 -1
  286. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/relationship.hpp +215 -70
  287. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/schedule.hpp +14 -17
  288. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/scheduler.hpp +1 -1
  289. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/sender.hpp +1 -1
  290. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_done.hpp +7 -10
  291. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_error.hpp +7 -10
  292. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_value.hpp +7 -10
  293. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/start.hpp +7 -10
  294. data/src/cxx_supportlib/vendor-modified/boost/asio/execution/submit.hpp +21 -21
  295. data/src/cxx_supportlib/vendor-modified/boost/asio/execution_context.hpp +1 -1
  296. data/src/cxx_supportlib/vendor-modified/boost/asio/executor.hpp +1 -1
  297. data/src/cxx_supportlib/vendor-modified/boost/asio/executor_work_guard.hpp +34 -19
  298. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_single.hpp +137 -0
  299. data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/as_single.hpp +245 -0
  300. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/basic_endpoint.hpp +1 -1
  301. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/datagram_protocol.hpp +1 -1
  302. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/endpoint.hpp +1 -1
  303. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/impl/endpoint.ipp +1 -1
  304. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/raw_protocol.hpp +1 -1
  305. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/seq_packet_protocol.hpp +1 -1
  306. data/src/cxx_supportlib/vendor-modified/boost/asio/generic/stream_protocol.hpp +1 -1
  307. data/src/cxx_supportlib/vendor-modified/boost/asio/handler_alloc_hook.hpp +1 -1
  308. data/src/cxx_supportlib/vendor-modified/boost/asio/handler_continuation_hook.hpp +1 -1
  309. data/src/cxx_supportlib/vendor-modified/boost/asio/handler_invoke_hook.hpp +1 -1
  310. data/src/cxx_supportlib/vendor-modified/boost/asio/high_resolution_timer.hpp +1 -1
  311. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/awaitable.hpp +4 -4
  312. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_read_stream.hpp +3 -1
  313. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_write_stream.hpp +3 -1
  314. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/co_spawn.hpp +13 -13
  315. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/compose.hpp +4 -2
  316. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect.hpp +19 -19
  317. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/defer.hpp +13 -9
  318. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/detached.hpp +1 -1
  319. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/dispatch.hpp +13 -9
  320. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/error.ipp +1 -1
  321. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.hpp +1 -1
  322. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.ipp +1 -1
  323. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.hpp +1 -2
  324. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.ipp +1 -1
  325. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/handler_alloc_hook.ipp +3 -3
  326. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.hpp +6 -2
  327. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.ipp +1 -1
  328. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/multiple_exceptions.ipp +1 -1
  329. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/post.hpp +13 -9
  330. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read.hpp +56 -44
  331. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_at.hpp +2 -2
  332. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_until.hpp +106 -70
  333. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/redirect_error.hpp +2 -1
  334. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.hpp +1 -1
  335. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.ipp +1 -1
  336. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/spawn.hpp +8 -7
  337. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.hpp +2 -1
  338. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.hpp +1 -1
  339. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.ipp +1 -1
  340. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_executor.hpp +1 -2
  341. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.hpp +6 -2
  342. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.ipp +1 -1
  343. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_awaitable.hpp +14 -14
  344. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_future.hpp +1 -1
  345. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write.hpp +56 -44
  346. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write_at.hpp +2 -2
  347. data/src/cxx_supportlib/vendor-modified/boost/asio/io_context.hpp +21 -1
  348. data/src/cxx_supportlib/vendor-modified/boost/asio/io_context_strand.hpp +1 -1
  349. data/src/cxx_supportlib/vendor-modified/boost/asio/io_service.hpp +1 -1
  350. data/src/cxx_supportlib/vendor-modified/boost/asio/io_service_strand.hpp +1 -1
  351. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address.hpp +23 -1
  352. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4.hpp +21 -1
  353. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_iterator.hpp +1 -1
  354. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_range.hpp +1 -1
  355. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6.hpp +47 -6
  356. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_iterator.hpp +1 -1
  357. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_range.hpp +1 -1
  358. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/bad_address_cast.hpp +1 -1
  359. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_endpoint.hpp +32 -5
  360. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver.hpp +51 -5
  361. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_entry.hpp +1 -1
  362. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_iterator.hpp +1 -1
  363. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_query.hpp +1 -1
  364. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_results.hpp +1 -1
  365. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/endpoint.hpp +1 -1
  366. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/impl/endpoint.ipp +1 -1
  367. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/socket_option.hpp +1 -1
  368. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/host_name.hpp +1 -1
  369. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/icmp.hpp +1 -1
  370. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.hpp +1 -1
  371. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.ipp +1 -1
  372. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.hpp +1 -1
  373. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.ipp +1 -1
  374. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.hpp +1 -1
  375. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.ipp +2 -2
  376. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/basic_endpoint.hpp +1 -1
  377. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/host_name.ipp +1 -1
  378. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.hpp +1 -1
  379. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.ipp +1 -1
  380. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.hpp +1 -1
  381. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.ipp +1 -1
  382. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/multicast.hpp +1 -1
  383. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v4.hpp +1 -1
  384. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v6.hpp +1 -1
  385. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_base.hpp +1 -1
  386. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_query_base.hpp +1 -1
  387. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/tcp.hpp +1 -1
  388. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/udp.hpp +1 -1
  389. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/unicast.hpp +1 -1
  390. data/src/cxx_supportlib/vendor-modified/boost/asio/ip/v6_only.hpp +1 -1
  391. data/src/cxx_supportlib/vendor-modified/boost/asio/is_applicable_property.hpp +1 -1
  392. data/src/cxx_supportlib/vendor-modified/boost/asio/is_executor.hpp +1 -1
  393. data/src/cxx_supportlib/vendor-modified/boost/asio/is_read_buffered.hpp +1 -1
  394. data/src/cxx_supportlib/vendor-modified/boost/asio/is_write_buffered.hpp +1 -1
  395. data/src/cxx_supportlib/vendor-modified/boost/asio/local/basic_endpoint.hpp +1 -1
  396. data/src/cxx_supportlib/vendor-modified/boost/asio/local/connect_pair.hpp +1 -1
  397. data/src/cxx_supportlib/vendor-modified/boost/asio/local/datagram_protocol.hpp +1 -1
  398. data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/endpoint.hpp +1 -1
  399. data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/impl/endpoint.ipp +1 -1
  400. data/src/cxx_supportlib/vendor-modified/boost/asio/local/stream_protocol.hpp +1 -1
  401. data/src/cxx_supportlib/vendor-modified/boost/asio/multiple_exceptions.hpp +1 -1
  402. data/src/cxx_supportlib/vendor-modified/boost/asio/packaged_task.hpp +1 -1
  403. data/src/cxx_supportlib/vendor-modified/boost/asio/placeholders.hpp +1 -1
  404. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_descriptor.hpp +11 -10
  405. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_stream_descriptor.hpp +17 -6
  406. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor.hpp +1 -1
  407. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor_base.hpp +1 -1
  408. data/src/cxx_supportlib/vendor-modified/boost/asio/posix/stream_descriptor.hpp +1 -1
  409. data/src/cxx_supportlib/vendor-modified/boost/asio/post.hpp +5 -5
  410. data/src/cxx_supportlib/vendor-modified/boost/asio/prefer.hpp +235 -157
  411. data/src/cxx_supportlib/vendor-modified/boost/asio/query.hpp +79 -51
  412. data/src/cxx_supportlib/vendor-modified/boost/asio/read.hpp +55 -43
  413. data/src/cxx_supportlib/vendor-modified/boost/asio/read_at.hpp +1 -1
  414. data/src/cxx_supportlib/vendor-modified/boost/asio/read_until.hpp +106 -70
  415. data/src/cxx_supportlib/vendor-modified/boost/asio/redirect_error.hpp +1 -1
  416. data/src/cxx_supportlib/vendor-modified/boost/asio/require.hpp +136 -89
  417. data/src/cxx_supportlib/vendor-modified/boost/asio/require_concept.hpp +100 -58
  418. data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port.hpp +1 -1
  419. data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port_base.hpp +1 -1
  420. data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set.hpp +1 -1
  421. data/src/cxx_supportlib/vendor-modified/boost/asio/socket_base.hpp +1 -1
  422. data/src/cxx_supportlib/vendor-modified/boost/asio/spawn.hpp +7 -7
  423. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl.hpp +1 -1
  424. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context.hpp +1 -1
  425. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context_base.hpp +1 -1
  426. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/buffered_handshake_op.hpp +1 -1
  427. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/engine.hpp +1 -1
  428. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/handshake_op.hpp +1 -1
  429. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/engine.ipp +1 -1
  430. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/openssl_init.ipp +1 -1
  431. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/io.hpp +2 -1
  432. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_init.hpp +1 -1
  433. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_types.hpp +1 -1
  434. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/password_callback.hpp +1 -1
  435. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/read_op.hpp +1 -1
  436. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/shutdown_op.hpp +1 -1
  437. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/stream_core.hpp +1 -1
  438. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/verify_callback.hpp +1 -1
  439. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/write_op.hpp +1 -1
  440. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/error.hpp +1 -1
  441. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/host_name_verification.hpp +1 -1
  442. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.hpp +1 -1
  443. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.ipp +1 -1
  444. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/error.ipp +1 -1
  445. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/host_name_verification.ipp +1 -1
  446. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/rfc2818_verification.ipp +1 -1
  447. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/src.hpp +1 -1
  448. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/rfc2818_verification.hpp +1 -1
  449. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream.hpp +1 -1
  450. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream_base.hpp +1 -1
  451. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_context.hpp +1 -1
  452. data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_mode.hpp +1 -1
  453. data/src/cxx_supportlib/vendor-modified/boost/asio/static_thread_pool.hpp +1 -1
  454. data/src/cxx_supportlib/vendor-modified/boost/asio/steady_timer.hpp +1 -1
  455. data/src/cxx_supportlib/vendor-modified/boost/asio/strand.hpp +55 -23
  456. data/src/cxx_supportlib/vendor-modified/boost/asio/streambuf.hpp +1 -1
  457. data/src/cxx_supportlib/vendor-modified/boost/asio/system_context.hpp +1 -1
  458. data/src/cxx_supportlib/vendor-modified/boost/asio/system_executor.hpp +23 -1
  459. data/src/cxx_supportlib/vendor-modified/boost/asio/system_timer.hpp +1 -1
  460. data/src/cxx_supportlib/vendor-modified/boost/asio/this_coro.hpp +1 -1
  461. data/src/cxx_supportlib/vendor-modified/boost/asio/thread_pool.hpp +21 -1
  462. data/src/cxx_supportlib/vendor-modified/boost/asio/time_traits.hpp +1 -1
  463. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/bulk_execute_free.hpp +1 -1
  464. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/bulk_execute_member.hpp +1 -1
  465. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/connect_free.hpp +1 -1
  466. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/connect_member.hpp +1 -1
  467. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/equality_comparable.hpp +7 -3
  468. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/execute_free.hpp +1 -1
  469. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/execute_member.hpp +1 -1
  470. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_free.hpp +1 -1
  471. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_member.hpp +1 -1
  472. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_free.hpp +1 -1
  473. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_member.hpp +1 -1
  474. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_static_constexpr_member.hpp +1 -1
  475. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_free.hpp +1 -1
  476. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_member.hpp +1 -1
  477. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_free.hpp +1 -1
  478. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_member.hpp +1 -1
  479. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/schedule_free.hpp +1 -1
  480. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/schedule_member.hpp +1 -1
  481. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_done_free.hpp +1 -1
  482. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_done_member.hpp +1 -1
  483. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_error_free.hpp +1 -1
  484. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_error_member.hpp +1 -1
  485. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_value_free.hpp +1 -1
  486. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/set_value_member.hpp +1 -1
  487. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/start_free.hpp +1 -1
  488. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/start_member.hpp +1 -1
  489. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_query.hpp +1 -1
  490. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require.hpp +1 -1
  491. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require_concept.hpp +3 -2
  492. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/submit_free.hpp +1 -1
  493. data/src/cxx_supportlib/vendor-modified/boost/asio/traits/submit_member.hpp +1 -1
  494. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/buffer.hpp +1 -1
  495. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/executor.hpp +1 -1
  496. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/internet.hpp +1 -1
  497. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/io_context.hpp +1 -1
  498. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/net.hpp +1 -1
  499. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/netfwd.hpp +3 -11
  500. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/socket.hpp +1 -1
  501. data/src/cxx_supportlib/vendor-modified/boost/asio/ts/timer.hpp +1 -1
  502. data/src/cxx_supportlib/vendor-modified/boost/asio/unyield.hpp +1 -1
  503. data/src/cxx_supportlib/vendor-modified/boost/asio/use_awaitable.hpp +3 -3
  504. data/src/cxx_supportlib/vendor-modified/boost/asio/use_future.hpp +1 -1
  505. data/src/cxx_supportlib/vendor-modified/boost/asio/uses_executor.hpp +1 -1
  506. data/src/cxx_supportlib/vendor-modified/boost/asio/version.hpp +2 -2
  507. data/src/cxx_supportlib/vendor-modified/boost/asio/wait_traits.hpp +1 -1
  508. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_object_handle.hpp +10 -10
  509. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_overlapped_handle.hpp +10 -10
  510. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_random_access_handle.hpp +6 -6
  511. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_stream_handle.hpp +6 -6
  512. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/object_handle.hpp +1 -1
  513. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/overlapped_handle.hpp +1 -1
  514. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/overlapped_ptr.hpp +9 -9
  515. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/random_access_handle.hpp +1 -1
  516. data/src/cxx_supportlib/vendor-modified/boost/asio/windows/stream_handle.hpp +1 -1
  517. data/src/cxx_supportlib/vendor-modified/boost/asio/write.hpp +55 -43
  518. data/src/cxx_supportlib/vendor-modified/boost/asio/write_at.hpp +1 -1
  519. data/src/cxx_supportlib/vendor-modified/boost/asio/yield.hpp +1 -1
  520. data/src/cxx_supportlib/vendor-modified/boost/assert/source_location.hpp +6 -0
  521. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_gcc_aarch64.hpp +6 -6
  522. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/core_arch_ops_msvc_arm.hpp +4 -4
  523. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_aarch32.hpp +32 -32
  524. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/extra_ops_gcc_aarch64.hpp +15 -15
  525. data/src/cxx_supportlib/vendor-modified/boost/atomic/detail/int_sizes.hpp +25 -1
  526. data/src/cxx_supportlib/vendor-modified/boost/bind/apply.hpp +13 -0
  527. data/src/cxx_supportlib/vendor-modified/boost/bind/bind.hpp +3 -23
  528. data/src/cxx_supportlib/vendor-modified/boost/bind/bind_mf2_cc.hpp +18 -18
  529. data/src/cxx_supportlib/vendor-modified/boost/bind/detail/result_traits.hpp +154 -0
  530. data/src/cxx_supportlib/vendor-modified/boost/bind/placeholders.hpp +12 -0
  531. data/src/cxx_supportlib/vendor-modified/boost/bind/protect.hpp +52 -8
  532. data/src/cxx_supportlib/vendor-modified/boost/bind/std_placeholders.hpp +39 -0
  533. data/src/cxx_supportlib/vendor-modified/boost/cerrno.hpp +4 -320
  534. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp +1 -1
  535. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/base.hpp +6 -6
  536. data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/space_optimized.hpp +2 -2
  537. data/src/cxx_supportlib/vendor-modified/boost/concept/detail/general.hpp +21 -0
  538. data/src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp +7 -0
  539. data/src/cxx_supportlib/vendor-modified/boost/concept_check.hpp +1 -1
  540. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx03.hpp +214 -0
  541. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx11.hpp +215 -0
  542. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx14.hpp +47 -0
  543. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx17.hpp +59 -0
  544. data/src/cxx_supportlib/vendor-modified/boost/config/assert_cxx98.hpp +23 -0
  545. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/gcc.hpp +1 -1
  546. data/src/cxx_supportlib/vendor-modified/boost/config/compiler/visualc.hpp +11 -0
  547. data/src/cxx_supportlib/vendor-modified/boost/config/detail/cxx_composite.hpp +186 -0
  548. data/src/cxx_supportlib/vendor-modified/boost/config/detail/suffix.hpp +37 -2
  549. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/dinkumware.hpp +11 -4
  550. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libcpp.hpp +21 -1
  551. data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libstdcpp3.hpp +45 -1
  552. data/src/cxx_supportlib/vendor-modified/boost/container/adaptive_pool.hpp +8 -0
  553. data/src/cxx_supportlib/vendor-modified/boost/container/allocator.hpp +10 -7
  554. data/src/cxx_supportlib/vendor-modified/boost/container/allocator_traits.hpp +9 -0
  555. data/src/cxx_supportlib/vendor-modified/boost/container/container_fwd.hpp +6 -0
  556. data/src/cxx_supportlib/vendor-modified/boost/container/deque.hpp +123 -71
  557. data/src/cxx_supportlib/vendor-modified/boost/container/detail/adaptive_node_pool_impl.hpp +4 -3
  558. data/src/cxx_supportlib/vendor-modified/boost/container/detail/advanced_insert_int.hpp +117 -45
  559. data/src/cxx_supportlib/vendor-modified/boost/container/detail/algorithm.hpp +28 -0
  560. data/src/cxx_supportlib/vendor-modified/boost/container/detail/compare_functors.hpp +1 -0
  561. data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_begin.hpp +0 -3
  562. data/src/cxx_supportlib/vendor-modified/boost/container/detail/container_rebind.hpp +3 -3
  563. data/src/cxx_supportlib/vendor-modified/boost/container/detail/copy_move_algo.hpp +142 -36
  564. data/src/cxx_supportlib/vendor-modified/boost/container/detail/destroyers.hpp +100 -31
  565. data/src/cxx_supportlib/vendor-modified/boost/container/detail/dispatch_uses_allocator.hpp +24 -24
  566. data/src/cxx_supportlib/vendor-modified/boost/container/detail/flat_tree.hpp +141 -90
  567. data/src/cxx_supportlib/vendor-modified/boost/container/detail/guards_dended.hpp +198 -0
  568. data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_container.hpp +10 -0
  569. data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_contiguous_container.hpp +35 -0
  570. data/src/cxx_supportlib/vendor-modified/boost/container/detail/multiallocation_chain.hpp +12 -8
  571. data/src/cxx_supportlib/vendor-modified/boost/container/detail/mutex.hpp +4 -15
  572. data/src/cxx_supportlib/vendor-modified/boost/container/detail/next_capacity.hpp +22 -1
  573. data/src/cxx_supportlib/vendor-modified/boost/container/detail/pool_common_alloc.hpp +1 -1
  574. data/src/cxx_supportlib/vendor-modified/boost/container/detail/tree.hpp +126 -92
  575. data/src/cxx_supportlib/vendor-modified/boost/container/detail/type_traits.hpp +2 -0
  576. data/src/cxx_supportlib/vendor-modified/boost/container/detail/value_functors.hpp +4 -14
  577. data/src/cxx_supportlib/vendor-modified/boost/container/detail/workaround.hpp +30 -0
  578. data/src/cxx_supportlib/vendor-modified/boost/container/devector.hpp +3000 -0
  579. data/src/cxx_supportlib/vendor-modified/boost/container/flat_map.hpp +237 -169
  580. data/src/cxx_supportlib/vendor-modified/boost/container/flat_set.hpp +10 -28
  581. data/src/cxx_supportlib/vendor-modified/boost/container/list.hpp +58 -29
  582. data/src/cxx_supportlib/vendor-modified/boost/container/map.hpp +84 -80
  583. data/src/cxx_supportlib/vendor-modified/boost/container/options.hpp +41 -0
  584. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/devector.hpp +51 -0
  585. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/memory_resource.hpp +1 -1
  586. data/src/cxx_supportlib/vendor-modified/boost/container/pmr/polymorphic_allocator.hpp +2 -3
  587. data/src/cxx_supportlib/vendor-modified/boost/container/set.hpp +21 -35
  588. data/src/cxx_supportlib/vendor-modified/boost/container/slist.hpp +51 -26
  589. data/src/cxx_supportlib/vendor-modified/boost/container/small_vector.hpp +1 -1
  590. data/src/cxx_supportlib/vendor-modified/boost/container/stable_vector.hpp +109 -57
  591. data/src/cxx_supportlib/vendor-modified/boost/container/static_vector.hpp +4 -1
  592. data/src/cxx_supportlib/vendor-modified/boost/container/string.hpp +184 -105
  593. data/src/cxx_supportlib/vendor-modified/boost/container/throw_exception.hpp +123 -15
  594. data/src/cxx_supportlib/vendor-modified/boost/container/vector.hpp +368 -384
  595. data/src/cxx_supportlib/vendor-modified/boost/container_hash/extensions.hpp +1 -3
  596. data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash.hpp +1 -1
  597. data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash_fwd.hpp +1 -1
  598. data/src/cxx_supportlib/vendor-modified/boost/core/allocator_access.hpp +102 -134
  599. data/src/cxx_supportlib/vendor-modified/boost/core/bit.hpp +581 -0
  600. data/src/cxx_supportlib/vendor-modified/boost/core/cmath.hpp +199 -0
  601. data/src/cxx_supportlib/vendor-modified/boost/core/detail/splitmix64.hpp +54 -0
  602. data/src/cxx_supportlib/vendor-modified/boost/core/lightweight_test.hpp +42 -0
  603. data/src/cxx_supportlib/vendor-modified/boost/core/ref.hpp +36 -0
  604. data/src/cxx_supportlib/vendor-modified/boost/cregex.hpp +4 -0
  605. data/src/cxx_supportlib/vendor-modified/boost/date_time/date_iterator.hpp +8 -8
  606. data/src/cxx_supportlib/vendor-modified/boost/date_time/time_iterator.hpp +8 -8
  607. data/src/cxx_supportlib/vendor-modified/boost/detail/atomic_count.hpp +21 -0
  608. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/exception_ptr.hpp +55 -37
  609. data/src/cxx_supportlib/vendor-modified/boost/exception/detail/type_info.hpp +2 -1
  610. data/src/cxx_supportlib/vendor-modified/boost/exception/info.hpp +0 -3
  611. data/src/cxx_supportlib/vendor-modified/boost/foreach.hpp +3 -3
  612. data/src/cxx_supportlib/vendor-modified/boost/integer.hpp +2 -2
  613. data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor.hpp +2 -2
  614. data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor_ct.hpp +2 -2
  615. data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor_rt.hpp +1 -1
  616. data/src/cxx_supportlib/vendor-modified/boost/integer/extended_euclidean.hpp +1 -1
  617. data/src/cxx_supportlib/vendor-modified/boost/integer/integer_log2.hpp +1 -1
  618. data/src/cxx_supportlib/vendor-modified/boost/integer/integer_mask.hpp +2 -2
  619. data/src/cxx_supportlib/vendor-modified/boost/integer/mod_inverse.hpp +1 -1
  620. data/src/cxx_supportlib/vendor-modified/boost/integer/static_log2.hpp +2 -2
  621. data/src/cxx_supportlib/vendor-modified/boost/integer/static_min_max.hpp +2 -2
  622. data/src/cxx_supportlib/vendor-modified/boost/integer_fwd.hpp +2 -2
  623. data/src/cxx_supportlib/vendor-modified/boost/integer_traits.hpp +2 -2
  624. data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree.hpp +8 -16
  625. data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree_algorithms.hpp +4 -5
  626. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/array_initializer.hpp +2 -1
  627. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/bstree_algorithms_base.hpp +1 -2
  628. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/hash_combine.hpp +94 -0
  629. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/math.hpp +2 -2
  630. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/simple_disposers.hpp +2 -0
  631. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/twin.hpp +49 -0
  632. data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/value_functors.hpp +42 -0
  633. data/src/cxx_supportlib/vendor-modified/boost/intrusive/hashtable.hpp +1 -1
  634. data/src/cxx_supportlib/vendor-modified/boost/intrusive/linear_slist_algorithms.hpp +11 -5
  635. data/src/cxx_supportlib/vendor-modified/boost/intrusive/list.hpp +11 -11
  636. data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree.hpp +7 -15
  637. data/src/cxx_supportlib/vendor-modified/boost/intrusive/slist.hpp +18 -22
  638. data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_algorithms.hpp +2 -4
  639. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast.hpp +2 -2
  640. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/bad_lexical_cast.hpp +7 -7
  641. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical.hpp +1 -1
  642. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical_streams.hpp +38 -38
  643. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_numeric.hpp +1 -1
  644. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/inf_nan.hpp +13 -16
  645. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/is_character.hpp +1 -1
  646. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_char_constants.hpp +2 -2
  647. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_unsigned_converters.hpp +10 -10
  648. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/widest_char.hpp +1 -1
  649. data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/try_lexical_convert.hpp +5 -5
  650. data/src/cxx_supportlib/vendor-modified/boost/libs/random/src/random_device.cpp +1 -1
  651. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/posix_api.cpp +3 -7
  652. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/regex.cpp +10 -121
  653. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/static_mutex.cpp +5 -1
  654. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/wide_posix_api.cpp +4 -8
  655. data/src/cxx_supportlib/vendor-modified/boost/move/algo/adaptive_merge.hpp +2 -4
  656. data/src/cxx_supportlib/vendor-modified/boost/move/algo/adaptive_sort.hpp +3 -2
  657. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/adaptive_sort_merge.hpp +31 -14
  658. data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/merge.hpp +4 -48
  659. data/src/cxx_supportlib/vendor-modified/boost/move/default_delete.hpp +30 -3
  660. data/src/cxx_supportlib/vendor-modified/boost/move/detail/fwd_macros.hpp +12 -0
  661. data/src/cxx_supportlib/vendor-modified/boost/move/detail/nsec_clock.hpp +224 -0
  662. data/src/cxx_supportlib/vendor-modified/boost/move/detail/type_traits.hpp +253 -43
  663. data/src/cxx_supportlib/vendor-modified/boost/move/detail/unique_ptr_meta_utils.hpp +0 -26
  664. data/src/cxx_supportlib/vendor-modified/boost/move/unique_ptr.hpp +5 -5
  665. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/preprocessor/enum.hpp +12 -0
  666. data/src/cxx_supportlib/vendor-modified/boost/mpl/aux_/preprocessor/params.hpp +12 -0
  667. data/src/cxx_supportlib/vendor-modified/boost/mpl/has_xxx.hpp +2 -2
  668. data/src/cxx_supportlib/vendor-modified/boost/mpl/string.hpp +6 -6
  669. data/src/cxx_supportlib/vendor-modified/boost/none.hpp +3 -4
  670. data/src/cxx_supportlib/vendor-modified/boost/none_t.hpp +3 -1
  671. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/cast.hpp +1 -1
  672. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/converter_policies.hpp +4 -5
  673. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/converter.hpp +1 -1
  674. data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/meta.hpp +1 -1
  675. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/old_optional_implementation.hpp +2 -2
  676. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_config.hpp +1 -1
  677. data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_reference_spec.hpp +8 -1
  678. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/arg_list.hpp +5 -5
  679. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/default.hpp +11 -0
  680. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/maybe.hpp +2 -2
  681. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/name.hpp +1 -1
  682. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/item.hpp +2 -2
  683. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/make_arg_list.hpp +4 -4
  684. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/pack/tag_keyword_arg_ref.hpp +2 -2
  685. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_cast.hpp +1 -1
  686. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/function_forward_match.hpp +1 -1
  687. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/impl/specification.hpp +2 -2
  688. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/is_binary.hpp +1 -1
  689. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/preprocessor/is_nullary.hpp +1 -1
  690. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/set.hpp +1 -1
  691. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/tag.hpp +2 -2
  692. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/tagged_argument.hpp +12 -3
  693. data/src/cxx_supportlib/vendor-modified/boost/parameter/aux_/unwrap_cv_reference.hpp +3 -3
  694. data/src/cxx_supportlib/vendor-modified/boost/parameter/config.hpp +1 -1
  695. data/src/cxx_supportlib/vendor-modified/boost/parameter/macros.hpp +1 -1
  696. data/src/cxx_supportlib/vendor-modified/boost/parameter/match.hpp +1 -1
  697. data/src/cxx_supportlib/vendor-modified/boost/parameter/parameters.hpp +6 -6
  698. data/src/cxx_supportlib/vendor-modified/boost/pool/object_pool.hpp +2 -2
  699. data/src/cxx_supportlib/vendor-modified/boost/pool/pool_alloc.hpp +1 -1
  700. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture.h +1 -1
  701. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/alpha.h +5 -0
  702. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/arm.h +10 -0
  703. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/blackfin.h +5 -0
  704. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/convex.h +5 -0
  705. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/e2k.h +54 -0
  706. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ia64.h +5 -0
  707. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/m68k.h +5 -0
  708. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/mips.h +10 -0
  709. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/parisc.h +5 -0
  710. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ppc.h +55 -4
  711. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/ptx.h +5 -0
  712. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/pyramid.h +5 -0
  713. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/riscv.h +5 -0
  714. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/rs6k.h +10 -0
  715. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sparc.h +14 -2
  716. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/superh.h +13 -0
  717. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sys370.h +5 -0
  718. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/sys390.h +5 -0
  719. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/x86/32.h +5 -0
  720. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/x86/64.h +7 -2
  721. data/src/cxx_supportlib/vendor-modified/boost/predef/architecture/z.h +5 -0
  722. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/cxx.h +1 -1
  723. data/src/cxx_supportlib/vendor-modified/boost/predef/library/std/stdcpp3.h +1 -1
  724. data/src/cxx_supportlib/vendor-modified/boost/predef/make.h +4 -0
  725. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/bsdi.h +1 -0
  726. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/dragonfly.h +1 -0
  727. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/free.h +1 -0
  728. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/net.h +1 -0
  729. data/src/cxx_supportlib/vendor-modified/boost/predef/os/bsd/open.h +1 -0
  730. data/src/cxx_supportlib/vendor-modified/boost/predef/other.h +3 -2
  731. data/src/cxx_supportlib/vendor-modified/boost/predef/other/endian.h +7 -10
  732. data/src/cxx_supportlib/vendor-modified/boost/predef/other/wordsize.h +73 -0
  733. data/src/cxx_supportlib/vendor-modified/boost/predef/platform.h +0 -1
  734. data/src/cxx_supportlib/vendor-modified/boost/predef/version.h +1 -1
  735. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/add.hpp +54 -1
  736. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/dec.hpp +33 -0
  737. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_1_number.hpp +21 -0
  738. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_maximum_number.hpp +22 -0
  739. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/is_minimum_number.hpp +21 -0
  740. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/detail/maximum_number.hpp +19 -0
  741. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/div.hpp +37 -1
  742. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/inc.hpp +33 -0
  743. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_1024.hpp +531 -0
  744. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_256.hpp +276 -0
  745. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/dec_512.hpp +275 -0
  746. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_1024.hpp +536 -0
  747. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_256.hpp +275 -0
  748. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/limits/inc_512.hpp +280 -0
  749. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/mod.hpp +37 -1
  750. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/mul.hpp +60 -1
  751. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/arithmetic/sub.hpp +51 -1
  752. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/detail/get_data.hpp +1 -1
  753. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/enum.hpp +17 -1
  754. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/insert.hpp +71 -0
  755. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/remove.hpp +66 -0
  756. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/array/replace.hpp +58 -0
  757. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_1024.hpp +1044 -0
  758. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_256.hpp +793 -0
  759. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/limits/not_equal_512.hpp +532 -0
  760. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/comparison/not_equal.hpp +44 -1
  761. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/config/config.hpp +16 -33
  762. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/config/limits.hpp +136 -3
  763. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/deduce_d.hpp +27 -0
  764. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/dmc/while.hpp +2 -3
  765. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_1024.hpp +1044 -0
  766. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_256.hpp +533 -0
  767. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/limits/while_512.hpp +532 -0
  768. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/edg/while.hpp +27 -0
  769. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_1024.hpp +1044 -0
  770. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_256.hpp +533 -0
  771. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/limits/while_512.hpp +532 -0
  772. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/detail/while.hpp +27 -0
  773. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_1024.hpp +531 -0
  774. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_256.hpp +275 -0
  775. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/limits/while_512.hpp +275 -0
  776. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/control/while.hpp +75 -0
  777. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/auto_rec.hpp +41 -0
  778. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/dmc/auto_rec.hpp +2 -2
  779. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_1024.hpp +532 -0
  780. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_256.hpp +280 -0
  781. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/detail/limits/auto_rec_512.hpp +276 -0
  782. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/intercept.hpp +29 -0
  783. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/is_empty.hpp +0 -37
  784. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/is_empty_variadic.hpp +0 -4
  785. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_1024.hpp +530 -0
  786. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_256.hpp +273 -0
  787. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/limits/intercept_512.hpp +274 -0
  788. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/facilities/overload.hpp +1 -3
  789. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward1.hpp +27 -0
  790. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward2.hpp +27 -0
  791. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward3.hpp +27 -0
  792. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward4.hpp +27 -0
  793. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/forward5.hpp +27 -0
  794. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_1024.hpp +2573 -0
  795. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_256.hpp +1296 -0
  796. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward1_512.hpp +1293 -0
  797. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_1024.hpp +2573 -0
  798. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_256.hpp +1296 -0
  799. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward2_512.hpp +1293 -0
  800. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_1024.hpp +2573 -0
  801. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_256.hpp +1296 -0
  802. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward3_512.hpp +1293 -0
  803. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_1024.hpp +2573 -0
  804. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_256.hpp +1296 -0
  805. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward4_512.hpp +1293 -0
  806. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_1024.hpp +2573 -0
  807. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_256.hpp +1296 -0
  808. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/forward5_512.hpp +1293 -0
  809. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_1024.hpp +2571 -0
  810. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_256.hpp +1296 -0
  811. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse1_512.hpp +1291 -0
  812. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_1024.hpp +2571 -0
  813. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_256.hpp +1296 -0
  814. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse2_512.hpp +1293 -0
  815. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_1024.hpp +2571 -0
  816. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_256.hpp +1296 -0
  817. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse3_512.hpp +1293 -0
  818. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_1024.hpp +2571 -0
  819. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_256.hpp +1296 -0
  820. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse4_512.hpp +1293 -0
  821. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_1024.hpp +2571 -0
  822. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_256.hpp +1296 -0
  823. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/limits/reverse5_512.hpp +1293 -0
  824. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse1.hpp +25 -0
  825. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse2.hpp +25 -0
  826. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse3.hpp +25 -0
  827. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse4.hpp +25 -0
  828. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/iter/reverse5.hpp +25 -0
  829. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_1024.hpp +1549 -0
  830. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_256.hpp +782 -0
  831. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/local_512.hpp +781 -0
  832. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_1024.hpp +1549 -0
  833. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_256.hpp +782 -0
  834. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/limits/rlocal_512.hpp +781 -0
  835. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/local.hpp +27 -0
  836. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/iteration/detail/rlocal.hpp +25 -0
  837. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/dmc/fold_left.hpp +3 -2
  838. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/fold_left.hpp +28 -0
  839. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/fold_right.hpp +29 -0
  840. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_1024.hpp +1044 -0
  841. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_256.hpp +533 -0
  842. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_left_512.hpp +532 -0
  843. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_1024.hpp +1557 -0
  844. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_256.hpp +791 -0
  845. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/edg/limits/fold_right_512.hpp +789 -0
  846. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/fold_left.hpp +28 -0
  847. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/fold_right.hpp +26 -0
  848. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_1024.hpp +532 -0
  849. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_256.hpp +275 -0
  850. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_left_512.hpp +276 -0
  851. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_1024.hpp +532 -0
  852. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_256.hpp +275 -0
  853. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/detail/limits/fold_right_512.hpp +276 -0
  854. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/enum.hpp +13 -1
  855. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/fold_left.hpp +60 -0
  856. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/fold_right.hpp +44 -0
  857. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/for_each_product.hpp +25 -6
  858. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_1024.hpp +531 -0
  859. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_256.hpp +275 -0
  860. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/limits/fold_left_512.hpp +275 -0
  861. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/reverse.hpp +35 -0
  862. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/size.hpp +56 -1
  863. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/list/to_array.hpp +5 -72
  864. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/bool.hpp +22 -0
  865. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_1024.hpp +531 -0
  866. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_256.hpp +275 -0
  867. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/logical/limits/bool_512.hpp +275 -0
  868. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/punctuation/is_begin_parens.hpp +1 -5
  869. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/punctuation/remove_parens.hpp +0 -4
  870. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/deduce_r.hpp +27 -0
  871. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/dmc/for.hpp +3 -2
  872. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/for.hpp +26 -0
  873. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_1024.hpp +1044 -0
  874. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_256.hpp +533 -0
  875. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/edg/limits/for_512.hpp +532 -0
  876. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/for.hpp +28 -0
  877. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_1024.hpp +1044 -0
  878. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_256.hpp +533 -0
  879. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/limits/for_512.hpp +532 -0
  880. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/detail/msvc/for.hpp +1 -0
  881. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/for.hpp +114 -0
  882. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_1024.hpp +531 -0
  883. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_256.hpp +275 -0
  884. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/for_512.hpp +275 -0
  885. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_1024.hpp +1557 -0
  886. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_256.hpp +791 -0
  887. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/limits/repeat_512.hpp +789 -0
  888. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/repeat.hpp +22 -0
  889. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/repetition/repeat_from_to.hpp +27 -0
  890. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/binary_transform.hpp +6 -11
  891. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_1024.hpp +530 -0
  892. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_256.hpp +272 -0
  893. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/limits/split_512.hpp +274 -0
  894. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/detail/split.hpp +23 -0
  895. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/elem.hpp +23 -0
  896. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/enum.hpp +23 -0
  897. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/fold_left.hpp +52 -0
  898. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/fold_right.hpp +37 -0
  899. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_1024.hpp +530 -0
  900. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_256.hpp +272 -0
  901. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/elem_512.hpp +274 -0
  902. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_1024.hpp +530 -0
  903. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_256.hpp +272 -0
  904. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/enum_512.hpp +274 -0
  905. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_1024.hpp +1556 -0
  906. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_256.hpp +1053 -0
  907. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_left_512.hpp +788 -0
  908. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_1024.hpp +530 -0
  909. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_256.hpp +273 -0
  910. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/fold_right_512.hpp +274 -0
  911. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_1024.hpp +1043 -0
  912. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_256.hpp +532 -0
  913. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/limits/size_512.hpp +531 -0
  914. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/rest_n.hpp +9 -3
  915. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/size.hpp +23 -0
  916. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/seq/variadic_seq_to_seq.hpp +0 -2
  917. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/stringize.hpp +0 -4
  918. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/detail/is_single_return.hpp +2 -2
  919. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/eat.hpp +4 -18
  920. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/elem.hpp +11 -157
  921. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/insert.hpp +0 -5
  922. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_128.hpp +403 -0
  923. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_256.hpp +1171 -0
  924. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/reverse_64.hpp +83 -0
  925. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_128.hpp +595 -0
  926. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_256.hpp +1747 -0
  927. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_list_64.hpp +83 -0
  928. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_128.hpp +403 -0
  929. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_256.hpp +1171 -0
  930. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/limits/to_seq_64.hpp +84 -0
  931. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/pop_back.hpp +0 -5
  932. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/pop_front.hpp +0 -5
  933. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/push_back.hpp +0 -5
  934. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/push_front.hpp +0 -6
  935. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/rem.hpp +17 -39
  936. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/remove.hpp +0 -5
  937. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/replace.hpp +0 -5
  938. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/reverse.hpp +38 -25
  939. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/size.hpp +13 -6
  940. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_array.hpp +15 -12
  941. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_list.hpp +37 -25
  942. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/tuple/to_seq.hpp +38 -24
  943. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/detail/has_opt.hpp +1 -1
  944. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/detail/is_single_return.hpp +2 -2
  945. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/elem.hpp +93 -71
  946. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/has_opt.hpp +1 -1
  947. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_128.hpp +275 -0
  948. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_256.hpp +723 -0
  949. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/elem_64.hpp +81 -0
  950. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_128.hpp +47 -0
  951. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_256.hpp +53 -0
  952. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/limits/size_64.hpp +23 -0
  953. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/size.hpp +39 -4
  954. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_array.hpp +15 -9
  955. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_list.hpp +9 -2
  956. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_seq.hpp +1 -3
  957. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/to_tuple.hpp +1 -3
  958. data/src/cxx_supportlib/vendor-modified/boost/preprocessor/wstringize.hpp +0 -4
  959. data/src/cxx_supportlib/vendor-modified/boost/random.hpp +1 -0
  960. data/src/cxx_supportlib/vendor-modified/boost/random/additive_combine.hpp +2 -2
  961. data/src/cxx_supportlib/vendor-modified/boost/random/detail/gray_coded_qrng.hpp +29 -5
  962. data/src/cxx_supportlib/vendor-modified/boost/random/detail/int_float_pair.hpp +3 -4
  963. data/src/cxx_supportlib/vendor-modified/boost/random/detail/mixmax_skip_N17.ipp +287 -0
  964. data/src/cxx_supportlib/vendor-modified/boost/random/detail/niederreiter_base2_table.hpp +1 -0
  965. data/src/cxx_supportlib/vendor-modified/boost/random/detail/operators.hpp +1 -1
  966. data/src/cxx_supportlib/vendor-modified/boost/random/detail/qrng_base.hpp +5 -5
  967. data/src/cxx_supportlib/vendor-modified/boost/random/detail/seed.hpp +9 -11
  968. data/src/cxx_supportlib/vendor-modified/boost/random/detail/seed_impl.hpp +13 -14
  969. data/src/cxx_supportlib/vendor-modified/boost/random/detail/sobol_table.hpp +1 -0
  970. data/src/cxx_supportlib/vendor-modified/boost/random/discard_block.hpp +2 -2
  971. data/src/cxx_supportlib/vendor-modified/boost/random/generate_canonical.hpp +2 -3
  972. data/src/cxx_supportlib/vendor-modified/boost/random/hyperexponential_distribution.hpp +3 -3
  973. data/src/cxx_supportlib/vendor-modified/boost/random/independent_bits.hpp +3 -3
  974. data/src/cxx_supportlib/vendor-modified/boost/random/inversive_congruential.hpp +2 -3
  975. data/src/cxx_supportlib/vendor-modified/boost/random/lagged_fibonacci.hpp +4 -4
  976. data/src/cxx_supportlib/vendor-modified/boost/random/linear_congruential.hpp +5 -7
  977. data/src/cxx_supportlib/vendor-modified/boost/random/linear_feedback_shift.hpp +3 -3
  978. data/src/cxx_supportlib/vendor-modified/boost/random/mersenne_twister.hpp +2 -2
  979. data/src/cxx_supportlib/vendor-modified/boost/random/mixmax.hpp +313 -0
  980. data/src/cxx_supportlib/vendor-modified/boost/random/niederreiter_base2.hpp +2 -2
  981. data/src/cxx_supportlib/vendor-modified/boost/random/random_device.hpp +2 -2
  982. data/src/cxx_supportlib/vendor-modified/boost/random/shuffle_order.hpp +2 -2
  983. data/src/cxx_supportlib/vendor-modified/boost/random/sobol.hpp +3 -2
  984. data/src/cxx_supportlib/vendor-modified/boost/random/subtract_with_carry.hpp +4 -4
  985. data/src/cxx_supportlib/vendor-modified/boost/random/traits.hpp +3 -3
  986. data/src/cxx_supportlib/vendor-modified/boost/random/uniform_int_distribution.hpp +7 -7
  987. data/src/cxx_supportlib/vendor-modified/boost/random/uniform_real_distribution.hpp +2 -3
  988. data/src/cxx_supportlib/vendor-modified/boost/random/uniform_smallint.hpp +4 -5
  989. data/src/cxx_supportlib/vendor-modified/boost/random/xor_combine.hpp +4 -2
  990. data/src/cxx_supportlib/vendor-modified/boost/rational.hpp +7 -7
  991. data/src/cxx_supportlib/vendor-modified/boost/regex.hpp +4 -0
  992. data/src/cxx_supportlib/vendor-modified/boost/regex/concepts.hpp +78 -73
  993. data/src/cxx_supportlib/vendor-modified/boost/regex/config.hpp +97 -113
  994. data/src/cxx_supportlib/vendor-modified/boost/regex/pattern_except.hpp +4 -75
  995. data/src/cxx_supportlib/vendor-modified/boost/regex/pending/object_cache.hpp +4 -147
  996. data/src/cxx_supportlib/vendor-modified/boost/regex/pending/unicode_iterator.hpp +8 -761
  997. data/src/cxx_supportlib/vendor-modified/boost/regex/regex_traits.hpp +4 -0
  998. data/src/cxx_supportlib/vendor-modified/boost/regex/user.hpp +2 -0
  999. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex.hpp +8 -9
  1000. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex_creator.hpp +20 -19
  1001. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/basic_regex_parser.hpp +13 -13
  1002. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/c_regex_traits.hpp +342 -42
  1003. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/cpp_regex_traits.hpp +107 -24
  1004. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/cregex.hpp +0 -117
  1005. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/icu.hpp +1516 -0
  1006. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/match_flags.hpp +5 -5
  1007. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/match_results.hpp +8 -8
  1008. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/mem_block_cache.hpp +39 -1
  1009. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/object_cache.hpp +171 -0
  1010. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/pattern_except.hpp +127 -0
  1011. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher.hpp +13 -4
  1012. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_common.hpp +1 -1
  1013. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_non_recursive.hpp +39 -41
  1014. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/perl_matcher_recursive.hpp +6 -6
  1015. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/primary_transform.hpp +1 -1
  1016. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/protected_call.hpp +3 -1
  1017. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex.hpp +0 -36
  1018. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_format.hpp +3 -3
  1019. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_raw_buffer.hpp +35 -4
  1020. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_token_iterator.hpp +2 -0
  1021. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/regex_traits_defaults.hpp +638 -22
  1022. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/states.hpp +1 -1
  1023. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/unicode_iterator.hpp +790 -0
  1024. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/w32_regex_traits.hpp +521 -37
  1025. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex.hpp +734 -0
  1026. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex_creator.hpp +1575 -0
  1027. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/basic_regex_parser.hpp +3117 -0
  1028. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/c_regex_traits.hpp +474 -0
  1029. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/char_regex_traits.hpp +59 -0
  1030. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/cpp_regex_traits.hpp +1040 -0
  1031. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/cregex.hpp +195 -0
  1032. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/error_type.hpp +59 -0
  1033. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/icu.hpp +1402 -0
  1034. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/indexed_bit_flag.hpp +54 -0
  1035. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/iterator_category.hpp +84 -0
  1036. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/iterator_traits.hpp +32 -0
  1037. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/match_flags.hpp +156 -0
  1038. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/match_results.hpp +667 -0
  1039. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/mem_block_cache.hpp +175 -0
  1040. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/object_cache.hpp +160 -0
  1041. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/pattern_except.hpp +105 -0
  1042. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher.hpp +576 -0
  1043. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher_common.hpp +915 -0
  1044. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/perl_matcher_non_recursive.hpp +1872 -0
  1045. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/primary_transform.hpp +120 -0
  1046. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regbase.hpp +158 -0
  1047. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex.hpp +106 -0
  1048. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_format.hpp +1124 -0
  1049. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_fwd.hpp +73 -0
  1050. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_grep.hpp +98 -0
  1051. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_iterator.hpp +173 -0
  1052. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_match.hpp +92 -0
  1053. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_merge.hpp +71 -0
  1054. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_raw_buffer.hpp +213 -0
  1055. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_replace.hpp +77 -0
  1056. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_search.hpp +103 -0
  1057. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_split.hpp +152 -0
  1058. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_token_iterator.hpp +255 -0
  1059. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_traits.hpp +130 -0
  1060. data/src/cxx_supportlib/vendor-modified/boost/{libs/regex/src/regex_traits_defaults.cpp → regex/v5/regex_traits_defaults.hpp} +719 -415
  1061. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/regex_workaround.hpp +159 -0
  1062. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/states.hpp +299 -0
  1063. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/sub_match.hpp +382 -0
  1064. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/syntax_type.hpp +105 -0
  1065. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/u32regex_iterator.hpp +177 -0
  1066. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/u32regex_token_iterator.hpp +312 -0
  1067. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/unicode_iterator.hpp +864 -0
  1068. data/src/cxx_supportlib/vendor-modified/boost/regex/v5/w32_regex_traits.hpp +1176 -0
  1069. data/src/cxx_supportlib/vendor-modified/boost/regex_fwd.hpp +4 -0
  1070. data/src/cxx_supportlib/vendor-modified/boost/static_assert.hpp +1 -1
  1071. data/src/cxx_supportlib/vendor-modified/boost/system/detail/cerrno.hpp +329 -0
  1072. data/src/cxx_supportlib/vendor-modified/boost/system/detail/config.hpp +16 -0
  1073. data/src/cxx_supportlib/vendor-modified/boost/system/detail/enable_if.hpp +32 -0
  1074. data/src/cxx_supportlib/vendor-modified/boost/system/detail/errc.hpp +126 -0
  1075. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category.hpp +189 -0
  1076. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category_impl.hpp +108 -0
  1077. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_code.hpp +215 -0
  1078. data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_condition.hpp +163 -0
  1079. data/src/cxx_supportlib/vendor-modified/boost/system/detail/generic_category.hpp +80 -58
  1080. data/src/cxx_supportlib/vendor-modified/boost/system/detail/generic_category_message.hpp +108 -0
  1081. data/src/cxx_supportlib/vendor-modified/boost/system/detail/{system_category_posix.hpp → is_generic_value.hpp} +7 -14
  1082. data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category.hpp +110 -0
  1083. data/src/cxx_supportlib/vendor-modified/boost/system/detail/system_category_impl.hpp +83 -0
  1084. data/src/cxx_supportlib/vendor-modified/boost/system/detail/throws.hpp +59 -0
  1085. data/src/cxx_supportlib/vendor-modified/boost/system/detail/{std_interoperability.hpp → to_std_category.hpp} +11 -2
  1086. data/src/cxx_supportlib/vendor-modified/boost/system/errc.hpp +50 -0
  1087. data/src/cxx_supportlib/vendor-modified/boost/system/error_category.hpp +13 -0
  1088. data/src/cxx_supportlib/vendor-modified/boost/system/error_code.hpp +7 -925
  1089. data/src/cxx_supportlib/vendor-modified/boost/system/error_condition.hpp +13 -0
  1090. data/src/cxx_supportlib/vendor-modified/boost/system/generic_category.hpp +13 -0
  1091. data/src/cxx_supportlib/vendor-modified/boost/system/is_error_code_enum.hpp +30 -0
  1092. data/src/cxx_supportlib/vendor-modified/boost/system/is_error_condition_enum.hpp +30 -0
  1093. data/src/cxx_supportlib/vendor-modified/boost/system/system_category.hpp +14 -0
  1094. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/config.hpp +1 -1
  1095. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/thread.hpp +26 -0
  1096. data/src/cxx_supportlib/vendor-modified/boost/throw_exception.hpp +37 -39
  1097. data/src/cxx_supportlib/vendor-modified/boost/type_index.hpp +1 -1
  1098. data/src/cxx_supportlib/vendor-modified/boost/type_index/stl_type_index.hpp +1 -1
  1099. data/src/cxx_supportlib/vendor-modified/boost/type_index/type_index_facade.hpp +1 -1
  1100. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_cxx_11.hpp +247 -168
  1101. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_ptr_tester.hpp +27 -27
  1102. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_likely_lambda.hpp +1 -1
  1103. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_mem_fun_pointer_tester.hpp +27 -27
  1104. data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp +242 -217
  1105. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_convertible.hpp +1 -1
  1106. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_empty.hpp +1 -1
  1107. data/src/cxx_supportlib/vendor-modified/boost/type_traits/is_trivially_copyable.hpp +4 -0
  1108. data/src/cxx_supportlib/vendor-modified/boost/type_traits/type_with_alignment.hpp +1 -1
  1109. data/src/cxx_supportlib/vendor-modified/boost/typeof/modifiers.hpp +3 -3
  1110. data/src/cxx_supportlib/vendor-modified/boost/typeof/register_fundamental.hpp +2 -2
  1111. data/src/cxx_supportlib/vendor-modified/boost/typeof/std/string.hpp +1 -1
  1112. data/src/cxx_supportlib/vendor-modified/boost/typeof/template_encoding.hpp +1 -1
  1113. data/src/cxx_supportlib/vendor-modified/boost/typeof/template_template_param.hpp +1 -1
  1114. data/src/cxx_supportlib/vendor-modified/boost/typeof/typeof.hpp +4 -4
  1115. data/src/cxx_supportlib/vendor-modified/boost/typeof/typeof_impl.hpp +1 -1
  1116. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map.hpp +8 -8
  1117. data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set.hpp +8 -8
  1118. data/src/cxx_supportlib/vendor-modified/boost/version.hpp +2 -2
  1119. data/src/ruby_supportlib/phusion_passenger.rb +5 -5
  1120. data/src/ruby_supportlib/phusion_passenger/platform_info/curl.rb +3 -0
  1121. data/src/ruby_supportlib/phusion_passenger/platform_info/openssl.rb +5 -0
  1122. metadata +223 -28
  1123. data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.cpp +0 -25
  1124. data/src/cxx_supportlib/vendor-modified/boost/bind.hpp +0 -60
  1125. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/c_regex_traits.cpp +0 -206
  1126. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/cpp_regex_traits.cpp +0 -117
  1127. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/cregex.cpp +0 -667
  1128. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/instances.cpp +0 -32
  1129. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/regex_raw_buffer.cpp +0 -72
  1130. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/wc_regex_traits.cpp +0 -314
  1131. data/src/cxx_supportlib/vendor-modified/boost/libs/regex/src/winstances.cpp +0 -35
  1132. data/src/cxx_supportlib/vendor-modified/boost/math/policies/policy.hpp +0 -1038
  1133. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/detail/fp_traits.hpp +0 -581
  1134. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/detail/round_fwd.hpp +0 -93
  1135. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/fpclassify.hpp +0 -640
  1136. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/math_fwd.hpp +0 -1712
  1137. data/src/cxx_supportlib/vendor-modified/boost/math/special_functions/sign.hpp +0 -194
  1138. data/src/cxx_supportlib/vendor-modified/boost/math/tools/config.hpp +0 -489
  1139. data/src/cxx_supportlib/vendor-modified/boost/math/tools/promotion.hpp +0 -182
  1140. data/src/cxx_supportlib/vendor-modified/boost/math/tools/real_cast.hpp +0 -31
  1141. data/src/cxx_supportlib/vendor-modified/boost/math/tools/user.hpp +0 -105
  1142. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/fileiter.hpp +0 -557
  1143. data/src/cxx_supportlib/vendor-modified/boost/regex/v4/instances.hpp +0 -236
  1144. data/src/cxx_supportlib/vendor-modified/boost/thread/detail/thread.hpp.orig +0 -841
  1145. data/src/cxx_supportlib/vendor-modified/boost/thread/once.hpp.orig +0 -54
@@ -0,0 +1,1872 @@
1
+ /*
2
+ *
3
+ * Copyright (c) 2002
4
+ * John Maddock
5
+ *
6
+ * Use, modification and distribution are subject to the
7
+ * Boost Software License, Version 1.0. (See accompanying file
8
+ * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9
+ *
10
+ */
11
+
12
+ /*
13
+ * LOCATION: see http://www.boost.org for most recent version.
14
+ * FILE perl_matcher_common.cpp
15
+ * VERSION see <boost/version.hpp>
16
+ * DESCRIPTION: Definitions of perl_matcher member functions that are
17
+ * specific to the non-recursive implementation.
18
+ */
19
+
20
+ #ifndef BOOST_REGEX_V5_PERL_MATCHER_NON_RECURSIVE_HPP
21
+ #define BOOST_REGEX_V5_PERL_MATCHER_NON_RECURSIVE_HPP
22
+
23
+ #include <boost/regex/v5/mem_block_cache.hpp>
24
+
25
+ #ifdef BOOST_REGEX_MSVC
26
+ # pragma warning(push)
27
+ # pragma warning(disable: 4706 4459)
28
+ #if BOOST_REGEX_MSVC < 1910
29
+ #pragma warning(disable:4800)
30
+ #endif
31
+ #endif
32
+
33
+ namespace boost{
34
+ namespace BOOST_REGEX_DETAIL_NS{
35
+
36
+ template <class T>
37
+ inline void inplace_destroy(T* p)
38
+ {
39
+ (void)p; // warning suppression
40
+ p->~T();
41
+ }
42
+
43
+ struct saved_state
44
+ {
45
+ union{
46
+ unsigned int state_id;
47
+ // this padding ensures correct alignment on 64-bit platforms:
48
+ std::size_t padding1;
49
+ std::ptrdiff_t padding2;
50
+ void* padding3;
51
+ };
52
+ saved_state(unsigned i) : state_id(i) {}
53
+ };
54
+
55
+ template <class BidiIterator>
56
+ struct saved_matched_paren : public saved_state
57
+ {
58
+ int index;
59
+ sub_match<BidiIterator> sub;
60
+ saved_matched_paren(int i, const sub_match<BidiIterator>& s) : saved_state(1), index(i), sub(s){}
61
+ };
62
+
63
+ template <class BidiIterator>
64
+ struct saved_position : public saved_state
65
+ {
66
+ const re_syntax_base* pstate;
67
+ BidiIterator position;
68
+ saved_position(const re_syntax_base* ps, BidiIterator pos, int i) : saved_state(i), pstate(ps), position(pos){}
69
+ };
70
+
71
+ template <class BidiIterator>
72
+ struct saved_assertion : public saved_position<BidiIterator>
73
+ {
74
+ bool positive;
75
+ saved_assertion(bool p, const re_syntax_base* ps, BidiIterator pos)
76
+ : saved_position<BidiIterator>(ps, pos, saved_type_assertion), positive(p){}
77
+ };
78
+
79
+ template <class BidiIterator>
80
+ struct saved_repeater : public saved_state
81
+ {
82
+ repeater_count<BidiIterator> count;
83
+ saved_repeater(int i, repeater_count<BidiIterator>** s, BidiIterator start, int current_recursion_id)
84
+ : saved_state(saved_state_repeater_count), count(i, s, start, current_recursion_id){}
85
+ };
86
+
87
+ struct saved_extra_block : public saved_state
88
+ {
89
+ saved_state *base, *end;
90
+ saved_extra_block(saved_state* b, saved_state* e)
91
+ : saved_state(saved_state_extra_block), base(b), end(e) {}
92
+ };
93
+
94
+ struct save_state_init
95
+ {
96
+ saved_state** stack;
97
+ save_state_init(saved_state** base, saved_state** end)
98
+ : stack(base)
99
+ {
100
+ *base = static_cast<saved_state*>(get_mem_block());
101
+ *end = reinterpret_cast<saved_state*>(reinterpret_cast<char*>(*base)+BOOST_REGEX_BLOCKSIZE);
102
+ --(*end);
103
+ (void) new (*end)saved_state(0);
104
+ BOOST_REGEX_ASSERT(*end > *base);
105
+ }
106
+ ~save_state_init()
107
+ {
108
+ put_mem_block(*stack);
109
+ *stack = 0;
110
+ }
111
+ };
112
+
113
+ template <class BidiIterator>
114
+ struct saved_single_repeat : public saved_state
115
+ {
116
+ std::size_t count;
117
+ const re_repeat* rep;
118
+ BidiIterator last_position;
119
+ saved_single_repeat(std::size_t c, const re_repeat* r, BidiIterator lp, int arg_id)
120
+ : saved_state(arg_id), count(c), rep(r), last_position(lp){}
121
+ };
122
+
123
+ template <class Results>
124
+ struct saved_recursion : public saved_state
125
+ {
126
+ saved_recursion(int idx, const re_syntax_base* p, Results* pr, Results* pr2)
127
+ : saved_state(14), recursion_id(idx), preturn_address(p), internal_results(*pr), prior_results(*pr2) {}
128
+ int recursion_id;
129
+ const re_syntax_base* preturn_address;
130
+ Results internal_results, prior_results;
131
+ };
132
+
133
+ struct saved_change_case : public saved_state
134
+ {
135
+ bool icase;
136
+ saved_change_case(bool c) : saved_state(18), icase(c) {}
137
+ };
138
+
139
+ struct incrementer
140
+ {
141
+ incrementer(unsigned* pu) : m_pu(pu) { ++*m_pu; }
142
+ ~incrementer() { --*m_pu; }
143
+ bool operator > (unsigned i) { return *m_pu > i; }
144
+ private:
145
+ unsigned* m_pu;
146
+ };
147
+
148
+ template <class BidiIterator, class Allocator, class traits>
149
+ bool perl_matcher<BidiIterator, Allocator, traits>::match_all_states()
150
+ {
151
+ static matcher_proc_type const s_match_vtable[34] =
152
+ {
153
+ (&perl_matcher<BidiIterator, Allocator, traits>::match_startmark),
154
+ &perl_matcher<BidiIterator, Allocator, traits>::match_endmark,
155
+ &perl_matcher<BidiIterator, Allocator, traits>::match_literal,
156
+ &perl_matcher<BidiIterator, Allocator, traits>::match_start_line,
157
+ &perl_matcher<BidiIterator, Allocator, traits>::match_end_line,
158
+ &perl_matcher<BidiIterator, Allocator, traits>::match_wild,
159
+ &perl_matcher<BidiIterator, Allocator, traits>::match_match,
160
+ &perl_matcher<BidiIterator, Allocator, traits>::match_word_boundary,
161
+ &perl_matcher<BidiIterator, Allocator, traits>::match_within_word,
162
+ &perl_matcher<BidiIterator, Allocator, traits>::match_word_start,
163
+ &perl_matcher<BidiIterator, Allocator, traits>::match_word_end,
164
+ &perl_matcher<BidiIterator, Allocator, traits>::match_buffer_start,
165
+ &perl_matcher<BidiIterator, Allocator, traits>::match_buffer_end,
166
+ &perl_matcher<BidiIterator, Allocator, traits>::match_backref,
167
+ &perl_matcher<BidiIterator, Allocator, traits>::match_long_set,
168
+ &perl_matcher<BidiIterator, Allocator, traits>::match_set,
169
+ &perl_matcher<BidiIterator, Allocator, traits>::match_jump,
170
+ &perl_matcher<BidiIterator, Allocator, traits>::match_alt,
171
+ &perl_matcher<BidiIterator, Allocator, traits>::match_rep,
172
+ &perl_matcher<BidiIterator, Allocator, traits>::match_combining,
173
+ &perl_matcher<BidiIterator, Allocator, traits>::match_soft_buffer_end,
174
+ &perl_matcher<BidiIterator, Allocator, traits>::match_restart_continue,
175
+ // Although this next line *should* be evaluated at compile time, in practice
176
+ // some compilers (VC++) emit run-time initialisation which breaks thread
177
+ // safety, so use a dispatch function instead:
178
+ //(::boost::is_random_access_iterator<BidiIterator>::value ? &perl_matcher<BidiIterator, Allocator, traits>::match_dot_repeat_fast : &perl_matcher<BidiIterator, Allocator, traits>::match_dot_repeat_slow),
179
+ &perl_matcher<BidiIterator, Allocator, traits>::match_dot_repeat_dispatch,
180
+ &perl_matcher<BidiIterator, Allocator, traits>::match_char_repeat,
181
+ &perl_matcher<BidiIterator, Allocator, traits>::match_set_repeat,
182
+ &perl_matcher<BidiIterator, Allocator, traits>::match_long_set_repeat,
183
+ &perl_matcher<BidiIterator, Allocator, traits>::match_backstep,
184
+ &perl_matcher<BidiIterator, Allocator, traits>::match_assert_backref,
185
+ &perl_matcher<BidiIterator, Allocator, traits>::match_toggle_case,
186
+ &perl_matcher<BidiIterator, Allocator, traits>::match_recursion,
187
+ &perl_matcher<BidiIterator, Allocator, traits>::match_fail,
188
+ &perl_matcher<BidiIterator, Allocator, traits>::match_accept,
189
+ &perl_matcher<BidiIterator, Allocator, traits>::match_commit,
190
+ &perl_matcher<BidiIterator, Allocator, traits>::match_then,
191
+ };
192
+ incrementer inc(&m_recursions);
193
+ if(inc > 80)
194
+ raise_error(traits_inst, regex_constants::error_complexity);
195
+ push_recursion_stopper();
196
+ do{
197
+ while(pstate)
198
+ {
199
+ matcher_proc_type proc = s_match_vtable[pstate->type];
200
+ ++state_count;
201
+ if(!(this->*proc)())
202
+ {
203
+ if(state_count > max_state_count)
204
+ raise_error(traits_inst, regex_constants::error_complexity);
205
+ if((m_match_flags & match_partial) && (position == last) && (position != search_base))
206
+ m_has_partial_match = true;
207
+ bool successful_unwind = unwind(false);
208
+ if((m_match_flags & match_partial) && (position == last) && (position != search_base))
209
+ m_has_partial_match = true;
210
+ if(!successful_unwind)
211
+ return m_recursive_result;
212
+ }
213
+ }
214
+ }while(unwind(true));
215
+ return m_recursive_result;
216
+ }
217
+
218
+ template <class BidiIterator, class Allocator, class traits>
219
+ void perl_matcher<BidiIterator, Allocator, traits>::extend_stack()
220
+ {
221
+ if(used_block_count)
222
+ {
223
+ --used_block_count;
224
+ saved_state* stack_base;
225
+ saved_state* backup_state;
226
+ stack_base = static_cast<saved_state*>(get_mem_block());
227
+ backup_state = reinterpret_cast<saved_state*>(reinterpret_cast<char*>(stack_base)+BOOST_REGEX_BLOCKSIZE);
228
+ saved_extra_block* block = static_cast<saved_extra_block*>(backup_state);
229
+ --block;
230
+ (void) new (block) saved_extra_block(m_stack_base, m_backup_state);
231
+ m_stack_base = stack_base;
232
+ m_backup_state = block;
233
+ }
234
+ else
235
+ raise_error(traits_inst, regex_constants::error_stack);
236
+ }
237
+
238
+ template <class BidiIterator, class Allocator, class traits>
239
+ inline void perl_matcher<BidiIterator, Allocator, traits>::push_matched_paren(int index, const sub_match<BidiIterator>& sub)
240
+ {
241
+ //BOOST_REGEX_ASSERT(index);
242
+ saved_matched_paren<BidiIterator>* pmp = static_cast<saved_matched_paren<BidiIterator>*>(m_backup_state);
243
+ --pmp;
244
+ if(pmp < m_stack_base)
245
+ {
246
+ extend_stack();
247
+ pmp = static_cast<saved_matched_paren<BidiIterator>*>(m_backup_state);
248
+ --pmp;
249
+ }
250
+ (void) new (pmp)saved_matched_paren<BidiIterator>(index, sub);
251
+ m_backup_state = pmp;
252
+ }
253
+
254
+ template <class BidiIterator, class Allocator, class traits>
255
+ inline void perl_matcher<BidiIterator, Allocator, traits>::push_case_change(bool c)
256
+ {
257
+ //BOOST_REGEX_ASSERT(index);
258
+ saved_change_case* pmp = static_cast<saved_change_case*>(m_backup_state);
259
+ --pmp;
260
+ if(pmp < m_stack_base)
261
+ {
262
+ extend_stack();
263
+ pmp = static_cast<saved_change_case*>(m_backup_state);
264
+ --pmp;
265
+ }
266
+ (void) new (pmp)saved_change_case(c);
267
+ m_backup_state = pmp;
268
+ }
269
+
270
+ template <class BidiIterator, class Allocator, class traits>
271
+ inline void perl_matcher<BidiIterator, Allocator, traits>::push_recursion_stopper()
272
+ {
273
+ saved_state* pmp = m_backup_state;
274
+ --pmp;
275
+ if(pmp < m_stack_base)
276
+ {
277
+ extend_stack();
278
+ pmp = m_backup_state;
279
+ --pmp;
280
+ }
281
+ (void) new (pmp)saved_state(saved_type_recurse);
282
+ m_backup_state = pmp;
283
+ }
284
+
285
+ template <class BidiIterator, class Allocator, class traits>
286
+ inline void perl_matcher<BidiIterator, Allocator, traits>::push_assertion(const re_syntax_base* ps, bool positive)
287
+ {
288
+ saved_assertion<BidiIterator>* pmp = static_cast<saved_assertion<BidiIterator>*>(m_backup_state);
289
+ --pmp;
290
+ if(pmp < m_stack_base)
291
+ {
292
+ extend_stack();
293
+ pmp = static_cast<saved_assertion<BidiIterator>*>(m_backup_state);
294
+ --pmp;
295
+ }
296
+ (void) new (pmp)saved_assertion<BidiIterator>(positive, ps, position);
297
+ m_backup_state = pmp;
298
+ }
299
+
300
+ template <class BidiIterator, class Allocator, class traits>
301
+ inline void perl_matcher<BidiIterator, Allocator, traits>::push_alt(const re_syntax_base* ps)
302
+ {
303
+ saved_position<BidiIterator>* pmp = static_cast<saved_position<BidiIterator>*>(m_backup_state);
304
+ --pmp;
305
+ if(pmp < m_stack_base)
306
+ {
307
+ extend_stack();
308
+ pmp = static_cast<saved_position<BidiIterator>*>(m_backup_state);
309
+ --pmp;
310
+ }
311
+ (void) new (pmp)saved_position<BidiIterator>(ps, position, saved_state_alt);
312
+ m_backup_state = pmp;
313
+ }
314
+
315
+ template <class BidiIterator, class Allocator, class traits>
316
+ inline void perl_matcher<BidiIterator, Allocator, traits>::push_non_greedy_repeat(const re_syntax_base* ps)
317
+ {
318
+ saved_position<BidiIterator>* pmp = static_cast<saved_position<BidiIterator>*>(m_backup_state);
319
+ --pmp;
320
+ if(pmp < m_stack_base)
321
+ {
322
+ extend_stack();
323
+ pmp = static_cast<saved_position<BidiIterator>*>(m_backup_state);
324
+ --pmp;
325
+ }
326
+ (void) new (pmp)saved_position<BidiIterator>(ps, position, saved_state_non_greedy_long_repeat);
327
+ m_backup_state = pmp;
328
+ }
329
+
330
+ template <class BidiIterator, class Allocator, class traits>
331
+ inline void perl_matcher<BidiIterator, Allocator, traits>::push_repeater_count(int i, repeater_count<BidiIterator>** s)
332
+ {
333
+ saved_repeater<BidiIterator>* pmp = static_cast<saved_repeater<BidiIterator>*>(m_backup_state);
334
+ --pmp;
335
+ if(pmp < m_stack_base)
336
+ {
337
+ extend_stack();
338
+ pmp = static_cast<saved_repeater<BidiIterator>*>(m_backup_state);
339
+ --pmp;
340
+ }
341
+ (void) new (pmp)saved_repeater<BidiIterator>(i, s, position, this->recursion_stack.empty() ? (INT_MIN + 3) : this->recursion_stack.back().idx);
342
+ m_backup_state = pmp;
343
+ }
344
+
345
+ template <class BidiIterator, class Allocator, class traits>
346
+ inline void perl_matcher<BidiIterator, Allocator, traits>::push_single_repeat(std::size_t c, const re_repeat* r, BidiIterator last_position, int state_id)
347
+ {
348
+ saved_single_repeat<BidiIterator>* pmp = static_cast<saved_single_repeat<BidiIterator>*>(m_backup_state);
349
+ --pmp;
350
+ if(pmp < m_stack_base)
351
+ {
352
+ extend_stack();
353
+ pmp = static_cast<saved_single_repeat<BidiIterator>*>(m_backup_state);
354
+ --pmp;
355
+ }
356
+ (void) new (pmp)saved_single_repeat<BidiIterator>(c, r, last_position, state_id);
357
+ m_backup_state = pmp;
358
+ }
359
+
360
+ template <class BidiIterator, class Allocator, class traits>
361
+ inline void perl_matcher<BidiIterator, Allocator, traits>::push_recursion(int idx, const re_syntax_base* p, results_type* presults, results_type* presults2)
362
+ {
363
+ saved_recursion<results_type>* pmp = static_cast<saved_recursion<results_type>*>(m_backup_state);
364
+ --pmp;
365
+ if(pmp < m_stack_base)
366
+ {
367
+ extend_stack();
368
+ pmp = static_cast<saved_recursion<results_type>*>(m_backup_state);
369
+ --pmp;
370
+ }
371
+ (void) new (pmp)saved_recursion<results_type>(idx, p, presults, presults2);
372
+ m_backup_state = pmp;
373
+ }
374
+
375
+ template <class BidiIterator, class Allocator, class traits>
376
+ bool perl_matcher<BidiIterator, Allocator, traits>::match_toggle_case()
377
+ {
378
+ // change our case sensitivity:
379
+ push_case_change(this->icase);
380
+ this->icase = static_cast<const re_case*>(pstate)->icase;
381
+ pstate = pstate->next.p;
382
+ return true;
383
+ }
384
+
385
+ template <class BidiIterator, class Allocator, class traits>
386
+ bool perl_matcher<BidiIterator, Allocator, traits>::match_startmark()
387
+ {
388
+ int index = static_cast<const re_brace*>(pstate)->index;
389
+ icase = static_cast<const re_brace*>(pstate)->icase;
390
+ switch(index)
391
+ {
392
+ case 0:
393
+ pstate = pstate->next.p;
394
+ break;
395
+ case -1:
396
+ case -2:
397
+ {
398
+ // forward lookahead assert:
399
+ const re_syntax_base* next_pstate = static_cast<const re_jump*>(pstate->next.p)->alt.p->next.p;
400
+ pstate = pstate->next.p->next.p;
401
+ push_assertion(next_pstate, index == -1);
402
+ break;
403
+ }
404
+ case -3:
405
+ {
406
+ // independent sub-expression, currently this is always recursive:
407
+ bool old_independent = m_independent;
408
+ m_independent = true;
409
+ const re_syntax_base* next_pstate = static_cast<const re_jump*>(pstate->next.p)->alt.p->next.p;
410
+ pstate = pstate->next.p->next.p;
411
+ bool r = false;
412
+ #if !defined(BOOST_NO_EXCEPTIONS)
413
+ try{
414
+ #endif
415
+ r = match_all_states();
416
+ if(!r && !m_independent)
417
+ {
418
+ // Must be unwinding from a COMMIT/SKIP/PRUNE and the independent
419
+ // sub failed, need to unwind everything else:
420
+ while(unwind(false));
421
+ return false;
422
+ }
423
+ #if !defined(BOOST_NO_EXCEPTIONS)
424
+ }
425
+ catch(...)
426
+ {
427
+ pstate = next_pstate;
428
+ // unwind all pushed states, apart from anything else this
429
+ // ensures that all the states are correctly destructed
430
+ // not just the memory freed.
431
+ while(unwind(true)) {}
432
+ throw;
433
+ }
434
+ #endif
435
+ pstate = next_pstate;
436
+ m_independent = old_independent;
437
+ #ifdef BOOST_REGEX_MATCH_EXTRA
438
+ if(r && (m_match_flags & match_extra))
439
+ {
440
+ //
441
+ // our captures have been stored in *m_presult
442
+ // we need to unpack them, and insert them
443
+ // back in the right order when we unwind the stack:
444
+ //
445
+ match_results<BidiIterator, Allocator> temp_match(*m_presult);
446
+ unsigned i;
447
+ for(i = 0; i < temp_match.size(); ++i)
448
+ (*m_presult)[i].get_captures().clear();
449
+ // match everything else:
450
+ #if !defined(BOOST_NO_EXCEPTIONS)
451
+ try{
452
+ #endif
453
+ r = match_all_states();
454
+ #if !defined(BOOST_NO_EXCEPTIONS)
455
+ }
456
+ catch(...)
457
+ {
458
+ pstate = next_pstate;
459
+ // unwind all pushed states, apart from anything else this
460
+ // ensures that all the states are correctly destructed
461
+ // not just the memory freed.
462
+ while(unwind(true)) {}
463
+ throw;
464
+ }
465
+ #endif
466
+ // now place the stored captures back:
467
+ for(i = 0; i < temp_match.size(); ++i)
468
+ {
469
+ typedef typename sub_match<BidiIterator>::capture_sequence_type seq;
470
+ seq& s1 = (*m_presult)[i].get_captures();
471
+ const seq& s2 = temp_match[i].captures();
472
+ s1.insert(
473
+ s1.end(),
474
+ s2.begin(),
475
+ s2.end());
476
+ }
477
+ }
478
+ #endif
479
+ return r;
480
+ }
481
+ case -4:
482
+ {
483
+ // conditional expression:
484
+ const re_alt* alt = static_cast<const re_alt*>(pstate->next.p);
485
+ BOOST_REGEX_ASSERT(alt->type == syntax_element_alt);
486
+ pstate = alt->next.p;
487
+ if(pstate->type == syntax_element_assert_backref)
488
+ {
489
+ if(!match_assert_backref())
490
+ pstate = alt->alt.p;
491
+ break;
492
+ }
493
+ else
494
+ {
495
+ // zero width assertion, have to match this recursively:
496
+ BOOST_REGEX_ASSERT(pstate->type == syntax_element_startmark);
497
+ bool negated = static_cast<const re_brace*>(pstate)->index == -2;
498
+ BidiIterator saved_position = position;
499
+ const re_syntax_base* next_pstate = static_cast<const re_jump*>(pstate->next.p)->alt.p->next.p;
500
+ pstate = pstate->next.p->next.p;
501
+ #if !defined(BOOST_NO_EXCEPTIONS)
502
+ try{
503
+ #endif
504
+ bool r = match_all_states();
505
+ position = saved_position;
506
+ if(negated)
507
+ r = !r;
508
+ if(r)
509
+ pstate = next_pstate;
510
+ else
511
+ pstate = alt->alt.p;
512
+ #if !defined(BOOST_NO_EXCEPTIONS)
513
+ }
514
+ catch(...)
515
+ {
516
+ pstate = next_pstate;
517
+ // unwind all pushed states, apart from anything else this
518
+ // ensures that all the states are correctly destructed
519
+ // not just the memory freed.
520
+ while(unwind(true)){}
521
+ throw;
522
+ }
523
+ #endif
524
+ break;
525
+ }
526
+ }
527
+ case -5:
528
+ {
529
+ push_matched_paren(0, (*m_presult)[0]);
530
+ m_presult->set_first(position, 0, true);
531
+ pstate = pstate->next.p;
532
+ break;
533
+ }
534
+ default:
535
+ {
536
+ BOOST_REGEX_ASSERT(index > 0);
537
+ if((m_match_flags & match_nosubs) == 0)
538
+ {
539
+ push_matched_paren(index, (*m_presult)[index]);
540
+ m_presult->set_first(position, index);
541
+ }
542
+ pstate = pstate->next.p;
543
+ break;
544
+ }
545
+ }
546
+ return true;
547
+ }
548
+
549
+ template <class BidiIterator, class Allocator, class traits>
550
+ bool perl_matcher<BidiIterator, Allocator, traits>::match_alt()
551
+ {
552
+ bool take_first, take_second;
553
+ const re_alt* jmp = static_cast<const re_alt*>(pstate);
554
+
555
+ // find out which of these two alternatives we need to take:
556
+ if(position == last)
557
+ {
558
+ take_first = jmp->can_be_null & mask_take;
559
+ take_second = jmp->can_be_null & mask_skip;
560
+ }
561
+ else
562
+ {
563
+ take_first = can_start(*position, jmp->_map, (unsigned char)mask_take);
564
+ take_second = can_start(*position, jmp->_map, (unsigned char)mask_skip);
565
+ }
566
+
567
+ if(take_first)
568
+ {
569
+ // we can take the first alternative,
570
+ // see if we need to push next alternative:
571
+ if(take_second)
572
+ {
573
+ push_alt(jmp->alt.p);
574
+ }
575
+ pstate = pstate->next.p;
576
+ return true;
577
+ }
578
+ if(take_second)
579
+ {
580
+ pstate = jmp->alt.p;
581
+ return true;
582
+ }
583
+ return false; // neither option is possible
584
+ }
585
+
586
+ template <class BidiIterator, class Allocator, class traits>
587
+ bool perl_matcher<BidiIterator, Allocator, traits>::match_rep()
588
+ {
589
+ #ifdef BOOST_REGEX_MSVC
590
+ #pragma warning(push)
591
+ #pragma warning(disable:4127 4244)
592
+ #endif
593
+ #ifdef BOOST_BORLANDC
594
+ #pragma option push -w-8008 -w-8066 -w-8004
595
+ #endif
596
+ const re_repeat* rep = static_cast<const re_repeat*>(pstate);
597
+
598
+ // find out which of these two alternatives we need to take:
599
+ bool take_first, take_second;
600
+ if(position == last)
601
+ {
602
+ take_first = rep->can_be_null & mask_take;
603
+ take_second = rep->can_be_null & mask_skip;
604
+ }
605
+ else
606
+ {
607
+ take_first = can_start(*position, rep->_map, (unsigned char)mask_take);
608
+ take_second = can_start(*position, rep->_map, (unsigned char)mask_skip);
609
+ }
610
+
611
+ if((m_backup_state->state_id != saved_state_repeater_count)
612
+ || (static_cast<saved_repeater<BidiIterator>*>(m_backup_state)->count.get_id() != rep->state_id)
613
+ || (next_count->get_id() != rep->state_id))
614
+ {
615
+ // we're moving to a different repeat from the last
616
+ // one, so set up a counter object:
617
+ push_repeater_count(rep->state_id, &next_count);
618
+ }
619
+ //
620
+ // If we've had at least one repeat already, and the last one
621
+ // matched the NULL string then set the repeat count to
622
+ // maximum:
623
+ //
624
+ next_count->check_null_repeat(position, rep->max);
625
+
626
+ if(next_count->get_count() < rep->min)
627
+ {
628
+ // we must take the repeat:
629
+ if(take_first)
630
+ {
631
+ // increase the counter:
632
+ ++(*next_count);
633
+ pstate = rep->next.p;
634
+ return true;
635
+ }
636
+ return false;
637
+ }
638
+
639
+ bool greedy = (rep->greedy) && (!(m_match_flags & regex_constants::match_any) || m_independent);
640
+ if(greedy)
641
+ {
642
+ // try and take the repeat if we can:
643
+ if((next_count->get_count() < rep->max) && take_first)
644
+ {
645
+ if(take_second)
646
+ {
647
+ // store position in case we fail:
648
+ push_alt(rep->alt.p);
649
+ }
650
+ // increase the counter:
651
+ ++(*next_count);
652
+ pstate = rep->next.p;
653
+ return true;
654
+ }
655
+ else if(take_second)
656
+ {
657
+ pstate = rep->alt.p;
658
+ return true;
659
+ }
660
+ return false; // can't take anything, fail...
661
+ }
662
+ else // non-greedy
663
+ {
664
+ // try and skip the repeat if we can:
665
+ if(take_second)
666
+ {
667
+ if((next_count->get_count() < rep->max) && take_first)
668
+ {
669
+ // store position in case we fail:
670
+ push_non_greedy_repeat(rep->next.p);
671
+ }
672
+ pstate = rep->alt.p;
673
+ return true;
674
+ }
675
+ if((next_count->get_count() < rep->max) && take_first)
676
+ {
677
+ // increase the counter:
678
+ ++(*next_count);
679
+ pstate = rep->next.p;
680
+ return true;
681
+ }
682
+ }
683
+ return false;
684
+ #ifdef BOOST_BORLANDC
685
+ #pragma option pop
686
+ #endif
687
+ #ifdef BOOST_REGEX_MSVC
688
+ #pragma warning(pop)
689
+ #endif
690
+ }
691
+
692
+ template <class BidiIterator, class Allocator, class traits>
693
+ bool perl_matcher<BidiIterator, Allocator, traits>::match_dot_repeat_slow()
694
+ {
695
+ std::size_t count = 0;
696
+ const re_repeat* rep = static_cast<const re_repeat*>(pstate);
697
+ re_syntax_base* psingle = rep->next.p;
698
+ // match compulsory repeats first:
699
+ while(count < rep->min)
700
+ {
701
+ pstate = psingle;
702
+ if(!match_wild())
703
+ return false;
704
+ ++count;
705
+ }
706
+ bool greedy = (rep->greedy) && (!(m_match_flags & regex_constants::match_any) || m_independent);
707
+ if(greedy)
708
+ {
709
+ // repeat for as long as we can:
710
+ while(count < rep->max)
711
+ {
712
+ pstate = psingle;
713
+ if(!match_wild())
714
+ break;
715
+ ++count;
716
+ }
717
+ // remember where we got to if this is a leading repeat:
718
+ if((rep->leading) && (count < rep->max))
719
+ restart = position;
720
+ // push backtrack info if available:
721
+ if(count - rep->min)
722
+ push_single_repeat(count, rep, position, saved_state_greedy_single_repeat);
723
+ // jump to next state:
724
+ pstate = rep->alt.p;
725
+ return true;
726
+ }
727
+ else
728
+ {
729
+ // non-greedy, push state and return true if we can skip:
730
+ if(count < rep->max)
731
+ push_single_repeat(count, rep, position, saved_state_rep_slow_dot);
732
+ pstate = rep->alt.p;
733
+ return (position == last) ? (rep->can_be_null & mask_skip) : can_start(*position, rep->_map, mask_skip);
734
+ }
735
+ }
736
+
737
+ template <class BidiIterator, class Allocator, class traits>
738
+ bool perl_matcher<BidiIterator, Allocator, traits>::match_dot_repeat_fast()
739
+ {
740
+ if(m_match_flags & match_not_dot_null)
741
+ return match_dot_repeat_slow();
742
+ if((static_cast<const re_dot*>(pstate->next.p)->mask & match_any_mask) == 0)
743
+ return match_dot_repeat_slow();
744
+
745
+ const re_repeat* rep = static_cast<const re_repeat*>(pstate);
746
+ bool greedy = (rep->greedy) && (!(m_match_flags & regex_constants::match_any) || m_independent);
747
+ std::size_t count = static_cast<std::size_t>((std::min)(static_cast<std::size_t>(std::distance(position, last)), greedy ? rep->max : rep->min));
748
+ if(rep->min > count)
749
+ {
750
+ position = last;
751
+ return false; // not enough text left to match
752
+ }
753
+ std::advance(position, count);
754
+
755
+ if(greedy)
756
+ {
757
+ if((rep->leading) && (count < rep->max))
758
+ restart = position;
759
+ // push backtrack info if available:
760
+ if(count - rep->min)
761
+ push_single_repeat(count, rep, position, saved_state_greedy_single_repeat);
762
+ // jump to next state:
763
+ pstate = rep->alt.p;
764
+ return true;
765
+ }
766
+ else
767
+ {
768
+ // non-greedy, push state and return true if we can skip:
769
+ if(count < rep->max)
770
+ push_single_repeat(count, rep, position, saved_state_rep_fast_dot);
771
+ pstate = rep->alt.p;
772
+ return (position == last) ? (rep->can_be_null & mask_skip) : can_start(*position, rep->_map, mask_skip);
773
+ }
774
+ }
775
+
776
+ template <class BidiIterator, class Allocator, class traits>
777
+ bool perl_matcher<BidiIterator, Allocator, traits>::match_char_repeat()
778
+ {
779
+ #ifdef BOOST_REGEX_MSVC
780
+ #pragma warning(push)
781
+ #pragma warning(disable:4127)
782
+ #endif
783
+ #ifdef BOOST_BORLANDC
784
+ #pragma option push -w-8008 -w-8066 -w-8004
785
+ #endif
786
+ const re_repeat* rep = static_cast<const re_repeat*>(pstate);
787
+ BOOST_REGEX_ASSERT(1 == static_cast<const re_literal*>(rep->next.p)->length);
788
+ const char_type what = *reinterpret_cast<const char_type*>(static_cast<const re_literal*>(rep->next.p) + 1);
789
+ std::size_t count = 0;
790
+ //
791
+ // start by working out how much we can skip:
792
+ //
793
+ bool greedy = (rep->greedy) && (!(m_match_flags & regex_constants::match_any) || m_independent);
794
+ std::size_t desired = greedy ? rep->max : rep->min;
795
+ if(::boost::is_random_access_iterator<BidiIterator>::value)
796
+ {
797
+ BidiIterator end = position;
798
+ // Move end forward by "desired", preferably without using distance or advance if we can
799
+ // as these can be slow for some iterator types.
800
+ std::size_t len = (desired == (std::numeric_limits<std::size_t>::max)()) ? 0u : std::distance(position, last);
801
+ if(desired >= len)
802
+ end = last;
803
+ else
804
+ std::advance(end, desired);
805
+ BidiIterator origin(position);
806
+ while((position != end) && (traits_inst.translate(*position, icase) == what))
807
+ {
808
+ ++position;
809
+ }
810
+ count = (unsigned)std::distance(origin, position);
811
+ }
812
+ else
813
+ {
814
+ while((count < desired) && (position != last) && (traits_inst.translate(*position, icase) == what))
815
+ {
816
+ ++position;
817
+ ++count;
818
+ }
819
+ }
820
+
821
+ if(count < rep->min)
822
+ return false;
823
+
824
+ if(greedy)
825
+ {
826
+ if((rep->leading) && (count < rep->max))
827
+ restart = position;
828
+ // push backtrack info if available:
829
+ if(count - rep->min)
830
+ push_single_repeat(count, rep, position, saved_state_greedy_single_repeat);
831
+ // jump to next state:
832
+ pstate = rep->alt.p;
833
+ return true;
834
+ }
835
+ else
836
+ {
837
+ // non-greedy, push state and return true if we can skip:
838
+ if(count < rep->max)
839
+ push_single_repeat(count, rep, position, saved_state_rep_char);
840
+ pstate = rep->alt.p;
841
+ return (position == last) ? (rep->can_be_null & mask_skip) : can_start(*position, rep->_map, mask_skip);
842
+ }
843
+ #ifdef BOOST_BORLANDC
844
+ #pragma option pop
845
+ #endif
846
+ #ifdef BOOST_REGEX_MSVC
847
+ #pragma warning(pop)
848
+ #endif
849
+ }
850
+
851
+ template <class BidiIterator, class Allocator, class traits>
852
+ bool perl_matcher<BidiIterator, Allocator, traits>::match_set_repeat()
853
+ {
854
+ #ifdef BOOST_REGEX_MSVC
855
+ #pragma warning(push)
856
+ #pragma warning(disable:4127)
857
+ #endif
858
+ #ifdef BOOST_BORLANDC
859
+ #pragma option push -w-8008 -w-8066 -w-8004
860
+ #endif
861
+ const re_repeat* rep = static_cast<const re_repeat*>(pstate);
862
+ const unsigned char* map = static_cast<const re_set*>(rep->next.p)->_map;
863
+ std::size_t count = 0;
864
+ //
865
+ // start by working out how much we can skip:
866
+ //
867
+ bool greedy = (rep->greedy) && (!(m_match_flags & regex_constants::match_any) || m_independent);
868
+ std::size_t desired = greedy ? rep->max : rep->min;
869
+ if(::boost::is_random_access_iterator<BidiIterator>::value)
870
+ {
871
+ BidiIterator end = position;
872
+ // Move end forward by "desired", preferably without using distance or advance if we can
873
+ // as these can be slow for some iterator types.
874
+ std::size_t len = (desired == (std::numeric_limits<std::size_t>::max)()) ? 0u : std::distance(position, last);
875
+ if(desired >= len)
876
+ end = last;
877
+ else
878
+ std::advance(end, desired);
879
+ BidiIterator origin(position);
880
+ while((position != end) && map[static_cast<unsigned char>(traits_inst.translate(*position, icase))])
881
+ {
882
+ ++position;
883
+ }
884
+ count = (unsigned)std::distance(origin, position);
885
+ }
886
+ else
887
+ {
888
+ while((count < desired) && (position != last) && map[static_cast<unsigned char>(traits_inst.translate(*position, icase))])
889
+ {
890
+ ++position;
891
+ ++count;
892
+ }
893
+ }
894
+
895
+ if(count < rep->min)
896
+ return false;
897
+
898
+ if(greedy)
899
+ {
900
+ if((rep->leading) && (count < rep->max))
901
+ restart = position;
902
+ // push backtrack info if available:
903
+ if(count - rep->min)
904
+ push_single_repeat(count, rep, position, saved_state_greedy_single_repeat);
905
+ // jump to next state:
906
+ pstate = rep->alt.p;
907
+ return true;
908
+ }
909
+ else
910
+ {
911
+ // non-greedy, push state and return true if we can skip:
912
+ if(count < rep->max)
913
+ push_single_repeat(count, rep, position, saved_state_rep_short_set);
914
+ pstate = rep->alt.p;
915
+ return (position == last) ? (rep->can_be_null & mask_skip) : can_start(*position, rep->_map, mask_skip);
916
+ }
917
+ #ifdef BOOST_BORLANDC
918
+ #pragma option pop
919
+ #endif
920
+ #ifdef BOOST_REGEX_MSVC
921
+ #pragma warning(pop)
922
+ #endif
923
+ }
924
+
925
+ template <class BidiIterator, class Allocator, class traits>
926
+ bool perl_matcher<BidiIterator, Allocator, traits>::match_long_set_repeat()
927
+ {
928
+ #ifdef BOOST_REGEX_MSVC
929
+ #pragma warning(push)
930
+ #pragma warning(disable:4127)
931
+ #endif
932
+ #ifdef BOOST_BORLANDC
933
+ #pragma option push -w-8008 -w-8066 -w-8004
934
+ #endif
935
+ typedef typename traits::char_class_type m_type;
936
+ const re_repeat* rep = static_cast<const re_repeat*>(pstate);
937
+ const re_set_long<m_type>* set = static_cast<const re_set_long<m_type>*>(pstate->next.p);
938
+ std::size_t count = 0;
939
+ //
940
+ // start by working out how much we can skip:
941
+ //
942
+ bool greedy = (rep->greedy) && (!(m_match_flags & regex_constants::match_any) || m_independent);
943
+ std::size_t desired = greedy ? rep->max : rep->min;
944
+ if(::boost::is_random_access_iterator<BidiIterator>::value)
945
+ {
946
+ BidiIterator end = position;
947
+ // Move end forward by "desired", preferably without using distance or advance if we can
948
+ // as these can be slow for some iterator types.
949
+ std::size_t len = (desired == (std::numeric_limits<std::size_t>::max)()) ? 0u : std::distance(position, last);
950
+ if(desired >= len)
951
+ end = last;
952
+ else
953
+ std::advance(end, desired);
954
+ BidiIterator origin(position);
955
+ while((position != end) && (position != re_is_set_member(position, last, set, re.get_data(), icase)))
956
+ {
957
+ ++position;
958
+ }
959
+ count = (unsigned)std::distance(origin, position);
960
+ }
961
+ else
962
+ {
963
+ while((count < desired) && (position != last) && (position != re_is_set_member(position, last, set, re.get_data(), icase)))
964
+ {
965
+ ++position;
966
+ ++count;
967
+ }
968
+ }
969
+
970
+ if(count < rep->min)
971
+ return false;
972
+
973
+ if(greedy)
974
+ {
975
+ if((rep->leading) && (count < rep->max))
976
+ restart = position;
977
+ // push backtrack info if available:
978
+ if(count - rep->min)
979
+ push_single_repeat(count, rep, position, saved_state_greedy_single_repeat);
980
+ // jump to next state:
981
+ pstate = rep->alt.p;
982
+ return true;
983
+ }
984
+ else
985
+ {
986
+ // non-greedy, push state and return true if we can skip:
987
+ if(count < rep->max)
988
+ push_single_repeat(count, rep, position, saved_state_rep_long_set);
989
+ pstate = rep->alt.p;
990
+ return (position == last) ? (rep->can_be_null & mask_skip) : can_start(*position, rep->_map, mask_skip);
991
+ }
992
+ #ifdef BOOST_BORLANDC
993
+ #pragma option pop
994
+ #endif
995
+ #ifdef BOOST_REGEX_MSVC
996
+ #pragma warning(pop)
997
+ #endif
998
+ }
999
+
1000
+ template <class BidiIterator, class Allocator, class traits>
1001
+ bool perl_matcher<BidiIterator, Allocator, traits>::match_recursion()
1002
+ {
1003
+ BOOST_REGEX_ASSERT(pstate->type == syntax_element_recurse);
1004
+ //
1005
+ // See if we've seen this recursion before at this location, if we have then
1006
+ // we need to prevent infinite recursion:
1007
+ //
1008
+ for(typename std::vector<recursion_info<results_type> >::reverse_iterator i = recursion_stack.rbegin(); i != recursion_stack.rend(); ++i)
1009
+ {
1010
+ if(i->idx == static_cast<const re_brace*>(static_cast<const re_jump*>(pstate)->alt.p)->index)
1011
+ {
1012
+ if(i->location_of_start == position)
1013
+ return false;
1014
+ break;
1015
+ }
1016
+ }
1017
+ //
1018
+ // Backup call stack:
1019
+ //
1020
+ push_recursion_pop();
1021
+ //
1022
+ // Set new call stack:
1023
+ //
1024
+ if(recursion_stack.capacity() == 0)
1025
+ {
1026
+ recursion_stack.reserve(50);
1027
+ }
1028
+ recursion_stack.push_back(recursion_info<results_type>());
1029
+ recursion_stack.back().preturn_address = pstate->next.p;
1030
+ recursion_stack.back().results = *m_presult;
1031
+ pstate = static_cast<const re_jump*>(pstate)->alt.p;
1032
+ recursion_stack.back().idx = static_cast<const re_brace*>(pstate)->index;
1033
+ recursion_stack.back().location_of_start = position;
1034
+ //if(static_cast<const re_recurse*>(pstate)->state_id > 0)
1035
+ {
1036
+ push_repeater_count(-(2 + static_cast<const re_brace*>(pstate)->index), &next_count);
1037
+ }
1038
+
1039
+ return true;
1040
+ }
1041
+
1042
+ template <class BidiIterator, class Allocator, class traits>
1043
+ bool perl_matcher<BidiIterator, Allocator, traits>::match_endmark()
1044
+ {
1045
+ int index = static_cast<const re_brace*>(pstate)->index;
1046
+ icase = static_cast<const re_brace*>(pstate)->icase;
1047
+ if(index > 0)
1048
+ {
1049
+ if((m_match_flags & match_nosubs) == 0)
1050
+ {
1051
+ m_presult->set_second(position, index);
1052
+ }
1053
+ if(!recursion_stack.empty())
1054
+ {
1055
+ if(index == recursion_stack.back().idx)
1056
+ {
1057
+ pstate = recursion_stack.back().preturn_address;
1058
+ *m_presult = recursion_stack.back().results;
1059
+ push_recursion(recursion_stack.back().idx, recursion_stack.back().preturn_address, m_presult, &recursion_stack.back().results);
1060
+ recursion_stack.pop_back();
1061
+ push_repeater_count(-(2 + index), &next_count);
1062
+ }
1063
+ }
1064
+ }
1065
+ else if((index < 0) && (index != -4))
1066
+ {
1067
+ // matched forward lookahead:
1068
+ pstate = 0;
1069
+ return true;
1070
+ }
1071
+ pstate = pstate->next.p;
1072
+ return true;
1073
+ }
1074
+
1075
+ template <class BidiIterator, class Allocator, class traits>
1076
+ bool perl_matcher<BidiIterator, Allocator, traits>::match_match()
1077
+ {
1078
+ if(!recursion_stack.empty())
1079
+ {
1080
+ BOOST_REGEX_ASSERT(0 == recursion_stack.back().idx);
1081
+ pstate = recursion_stack.back().preturn_address;
1082
+ push_recursion(recursion_stack.back().idx, recursion_stack.back().preturn_address, m_presult, &recursion_stack.back().results);
1083
+ *m_presult = recursion_stack.back().results;
1084
+ recursion_stack.pop_back();
1085
+ return true;
1086
+ }
1087
+ if((m_match_flags & match_not_null) && (position == (*m_presult)[0].first))
1088
+ return false;
1089
+ if((m_match_flags & match_all) && (position != last))
1090
+ return false;
1091
+ if((m_match_flags & regex_constants::match_not_initial_null) && (position == search_base))
1092
+ return false;
1093
+ m_presult->set_second(position);
1094
+ pstate = 0;
1095
+ m_has_found_match = true;
1096
+ if((m_match_flags & match_posix) == match_posix)
1097
+ {
1098
+ m_result.maybe_assign(*m_presult);
1099
+ if((m_match_flags & match_any) == 0)
1100
+ return false;
1101
+ }
1102
+ #ifdef BOOST_REGEX_MATCH_EXTRA
1103
+ if(match_extra & m_match_flags)
1104
+ {
1105
+ for(unsigned i = 0; i < m_presult->size(); ++i)
1106
+ if((*m_presult)[i].matched)
1107
+ ((*m_presult)[i]).get_captures().push_back((*m_presult)[i]);
1108
+ }
1109
+ #endif
1110
+ return true;
1111
+ }
1112
+
1113
+ template <class BidiIterator, class Allocator, class traits>
1114
+ bool perl_matcher<BidiIterator, Allocator, traits>::match_commit()
1115
+ {
1116
+ // Ideally we would just junk all the states that are on the stack,
1117
+ // however we might not unwind correctly in that case, so for now,
1118
+ // just mark that we don't backtrack into whatever is left (or rather
1119
+ // we'll unwind it unconditionally without pausing to try other matches).
1120
+
1121
+ switch(static_cast<const re_commit*>(pstate)->action)
1122
+ {
1123
+ case commit_commit:
1124
+ restart = last;
1125
+ break;
1126
+ case commit_skip:
1127
+ if(base != position)
1128
+ {
1129
+ restart = position;
1130
+ // Have to decrement restart since it will get incremented again later:
1131
+ --restart;
1132
+ }
1133
+ break;
1134
+ case commit_prune:
1135
+ break;
1136
+ }
1137
+
1138
+ saved_state* pmp = m_backup_state;
1139
+ --pmp;
1140
+ if(pmp < m_stack_base)
1141
+ {
1142
+ extend_stack();
1143
+ pmp = m_backup_state;
1144
+ --pmp;
1145
+ }
1146
+ (void) new (pmp)saved_state(16);
1147
+ m_backup_state = pmp;
1148
+ pstate = pstate->next.p;
1149
+ return true;
1150
+ }
1151
+
1152
+ template <class BidiIterator, class Allocator, class traits>
1153
+ bool perl_matcher<BidiIterator, Allocator, traits>::match_then()
1154
+ {
1155
+ // Just leave a mark that we need to skip to next alternative:
1156
+ saved_state* pmp = m_backup_state;
1157
+ --pmp;
1158
+ if(pmp < m_stack_base)
1159
+ {
1160
+ extend_stack();
1161
+ pmp = m_backup_state;
1162
+ --pmp;
1163
+ }
1164
+ (void) new (pmp)saved_state(17);
1165
+ m_backup_state = pmp;
1166
+ pstate = pstate->next.p;
1167
+ return true;
1168
+ }
1169
+
1170
+ template <class BidiIterator, class Allocator, class traits>
1171
+ bool perl_matcher<BidiIterator, Allocator, traits>::skip_until_paren(int index, bool have_match)
1172
+ {
1173
+ while(pstate)
1174
+ {
1175
+ if(pstate->type == syntax_element_endmark)
1176
+ {
1177
+ if(static_cast<const re_brace*>(pstate)->index == index)
1178
+ {
1179
+ if(have_match)
1180
+ return this->match_endmark();
1181
+ pstate = pstate->next.p;
1182
+ return true;
1183
+ }
1184
+ else
1185
+ {
1186
+ // Unenclosed closing ), occurs when (*ACCEPT) is inside some other
1187
+ // parenthesis which may or may not have other side effects associated with it.
1188
+ const re_syntax_base* sp = pstate;
1189
+ match_endmark();
1190
+ if(!pstate)
1191
+ {
1192
+ unwind(true);
1193
+ // unwind may leave pstate NULL if we've unwound a forward lookahead, in which
1194
+ // case just move to the next state and keep looking...
1195
+ if (!pstate)
1196
+ pstate = sp->next.p;
1197
+ }
1198
+ }
1199
+ continue;
1200
+ }
1201
+ else if(pstate->type == syntax_element_match)
1202
+ return true;
1203
+ else if(pstate->type == syntax_element_startmark)
1204
+ {
1205
+ int idx = static_cast<const re_brace*>(pstate)->index;
1206
+ pstate = pstate->next.p;
1207
+ skip_until_paren(idx, false);
1208
+ continue;
1209
+ }
1210
+ pstate = pstate->next.p;
1211
+ }
1212
+ return true;
1213
+ }
1214
+
1215
+ /****************************************************************************
1216
+
1217
+ Unwind and associated procedures follow, these perform what normal stack
1218
+ unwinding does in the recursive implementation.
1219
+
1220
+ ****************************************************************************/
1221
+
1222
+ template <class BidiIterator, class Allocator, class traits>
1223
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind(bool have_match)
1224
+ {
1225
+ static unwind_proc_type const s_unwind_table[19] =
1226
+ {
1227
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_end,
1228
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_paren,
1229
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_recursion_stopper,
1230
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_assertion,
1231
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_alt,
1232
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_repeater_counter,
1233
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_extra_block,
1234
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_greedy_single_repeat,
1235
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_slow_dot_repeat,
1236
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_fast_dot_repeat,
1237
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_char_repeat,
1238
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_short_set_repeat,
1239
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_long_set_repeat,
1240
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_non_greedy_repeat,
1241
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_recursion,
1242
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_recursion_pop,
1243
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_commit,
1244
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_then,
1245
+ &perl_matcher<BidiIterator, Allocator, traits>::unwind_case,
1246
+ };
1247
+
1248
+ m_recursive_result = have_match;
1249
+ m_unwound_lookahead = false;
1250
+ m_unwound_alt = false;
1251
+ unwind_proc_type unwinder;
1252
+ bool cont;
1253
+ //
1254
+ // keep unwinding our stack until we have something to do:
1255
+ //
1256
+ do
1257
+ {
1258
+ unwinder = s_unwind_table[m_backup_state->state_id];
1259
+ cont = (this->*unwinder)(m_recursive_result);
1260
+ }while(cont);
1261
+ //
1262
+ // return true if we have more states to try:
1263
+ //
1264
+ return pstate ? true : false;
1265
+ }
1266
+
1267
+ template <class BidiIterator, class Allocator, class traits>
1268
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_end(bool)
1269
+ {
1270
+ pstate = 0; // nothing left to search
1271
+ return false; // end of stack nothing more to search
1272
+ }
1273
+
1274
+ template <class BidiIterator, class Allocator, class traits>
1275
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_case(bool)
1276
+ {
1277
+ saved_change_case* pmp = static_cast<saved_change_case*>(m_backup_state);
1278
+ icase = pmp->icase;
1279
+ boost::BOOST_REGEX_DETAIL_NS::inplace_destroy(pmp++);
1280
+ m_backup_state = pmp;
1281
+ return true;
1282
+ }
1283
+
1284
+ template <class BidiIterator, class Allocator, class traits>
1285
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_paren(bool have_match)
1286
+ {
1287
+ saved_matched_paren<BidiIterator>* pmp = static_cast<saved_matched_paren<BidiIterator>*>(m_backup_state);
1288
+ // restore previous values if no match was found:
1289
+ if(!have_match)
1290
+ {
1291
+ m_presult->set_first(pmp->sub.first, pmp->index, pmp->index == 0);
1292
+ m_presult->set_second(pmp->sub.second, pmp->index, pmp->sub.matched, pmp->index == 0);
1293
+ }
1294
+ #ifdef BOOST_REGEX_MATCH_EXTRA
1295
+ //
1296
+ // we have a match, push the capture information onto the stack:
1297
+ //
1298
+ else if(pmp->sub.matched && (match_extra & m_match_flags))
1299
+ ((*m_presult)[pmp->index]).get_captures().push_back(pmp->sub);
1300
+ #endif
1301
+ // unwind stack:
1302
+ m_backup_state = pmp+1;
1303
+ boost::BOOST_REGEX_DETAIL_NS::inplace_destroy(pmp);
1304
+ return true; // keep looking
1305
+ }
1306
+
1307
+ template <class BidiIterator, class Allocator, class traits>
1308
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_recursion_stopper(bool)
1309
+ {
1310
+ boost::BOOST_REGEX_DETAIL_NS::inplace_destroy(m_backup_state++);
1311
+ pstate = 0; // nothing left to search
1312
+ return false; // end of stack nothing more to search
1313
+ }
1314
+
1315
+ template <class BidiIterator, class Allocator, class traits>
1316
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_assertion(bool r)
1317
+ {
1318
+ saved_assertion<BidiIterator>* pmp = static_cast<saved_assertion<BidiIterator>*>(m_backup_state);
1319
+ pstate = pmp->pstate;
1320
+ position = pmp->position;
1321
+ bool result = (r == pmp->positive);
1322
+ m_recursive_result = pmp->positive ? r : !r;
1323
+ boost::BOOST_REGEX_DETAIL_NS::inplace_destroy(pmp++);
1324
+ m_backup_state = pmp;
1325
+ m_unwound_lookahead = true;
1326
+ return !result; // return false if the assertion was matched to stop search.
1327
+ }
1328
+
1329
+ template <class BidiIterator, class Allocator, class traits>
1330
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_alt(bool r)
1331
+ {
1332
+ saved_position<BidiIterator>* pmp = static_cast<saved_position<BidiIterator>*>(m_backup_state);
1333
+ if(!r)
1334
+ {
1335
+ pstate = pmp->pstate;
1336
+ position = pmp->position;
1337
+ }
1338
+ boost::BOOST_REGEX_DETAIL_NS::inplace_destroy(pmp++);
1339
+ m_backup_state = pmp;
1340
+ m_unwound_alt = !r;
1341
+ return r;
1342
+ }
1343
+
1344
+ template <class BidiIterator, class Allocator, class traits>
1345
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_repeater_counter(bool)
1346
+ {
1347
+ saved_repeater<BidiIterator>* pmp = static_cast<saved_repeater<BidiIterator>*>(m_backup_state);
1348
+ boost::BOOST_REGEX_DETAIL_NS::inplace_destroy(pmp++);
1349
+ m_backup_state = pmp;
1350
+ return true; // keep looking
1351
+ }
1352
+
1353
+ template <class BidiIterator, class Allocator, class traits>
1354
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_extra_block(bool)
1355
+ {
1356
+ saved_extra_block* pmp = static_cast<saved_extra_block*>(m_backup_state);
1357
+ void* condemmed = m_stack_base;
1358
+ m_stack_base = pmp->base;
1359
+ m_backup_state = pmp->end;
1360
+ boost::BOOST_REGEX_DETAIL_NS::inplace_destroy(pmp);
1361
+ put_mem_block(condemmed);
1362
+ return true; // keep looking
1363
+ }
1364
+
1365
+ template <class BidiIterator, class Allocator, class traits>
1366
+ inline void perl_matcher<BidiIterator, Allocator, traits>::destroy_single_repeat()
1367
+ {
1368
+ saved_single_repeat<BidiIterator>* p = static_cast<saved_single_repeat<BidiIterator>*>(m_backup_state);
1369
+ boost::BOOST_REGEX_DETAIL_NS::inplace_destroy(p++);
1370
+ m_backup_state = p;
1371
+ }
1372
+
1373
+ template <class BidiIterator, class Allocator, class traits>
1374
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_greedy_single_repeat(bool r)
1375
+ {
1376
+ saved_single_repeat<BidiIterator>* pmp = static_cast<saved_single_repeat<BidiIterator>*>(m_backup_state);
1377
+
1378
+ // if we have a match, just discard this state:
1379
+ if(r)
1380
+ {
1381
+ destroy_single_repeat();
1382
+ return true;
1383
+ }
1384
+
1385
+ const re_repeat* rep = pmp->rep;
1386
+ std::size_t count = pmp->count;
1387
+ BOOST_REGEX_ASSERT(rep->next.p != 0);
1388
+ BOOST_REGEX_ASSERT(rep->alt.p != 0);
1389
+
1390
+ count -= rep->min;
1391
+
1392
+ if((m_match_flags & match_partial) && (position == last))
1393
+ m_has_partial_match = true;
1394
+
1395
+ BOOST_REGEX_ASSERT(count);
1396
+ position = pmp->last_position;
1397
+
1398
+ // backtrack till we can skip out:
1399
+ do
1400
+ {
1401
+ --position;
1402
+ --count;
1403
+ ++state_count;
1404
+ }while(count && !can_start(*position, rep->_map, mask_skip));
1405
+
1406
+ // if we've hit base, destroy this state:
1407
+ if(count == 0)
1408
+ {
1409
+ destroy_single_repeat();
1410
+ if(!can_start(*position, rep->_map, mask_skip))
1411
+ return true;
1412
+ }
1413
+ else
1414
+ {
1415
+ pmp->count = count + rep->min;
1416
+ pmp->last_position = position;
1417
+ }
1418
+ pstate = rep->alt.p;
1419
+ return false;
1420
+ }
1421
+
1422
+ template <class BidiIterator, class Allocator, class traits>
1423
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_slow_dot_repeat(bool r)
1424
+ {
1425
+ saved_single_repeat<BidiIterator>* pmp = static_cast<saved_single_repeat<BidiIterator>*>(m_backup_state);
1426
+
1427
+ // if we have a match, just discard this state:
1428
+ if(r)
1429
+ {
1430
+ destroy_single_repeat();
1431
+ return true;
1432
+ }
1433
+
1434
+ const re_repeat* rep = pmp->rep;
1435
+ std::size_t count = pmp->count;
1436
+ BOOST_REGEX_ASSERT(rep->type == syntax_element_dot_rep);
1437
+ BOOST_REGEX_ASSERT(rep->next.p != 0);
1438
+ BOOST_REGEX_ASSERT(rep->alt.p != 0);
1439
+ BOOST_REGEX_ASSERT(rep->next.p->type == syntax_element_wild);
1440
+
1441
+ BOOST_REGEX_ASSERT(count < rep->max);
1442
+ pstate = rep->next.p;
1443
+ position = pmp->last_position;
1444
+
1445
+ if(position != last)
1446
+ {
1447
+ // wind forward until we can skip out of the repeat:
1448
+ do
1449
+ {
1450
+ if(!match_wild())
1451
+ {
1452
+ // failed repeat match, discard this state and look for another:
1453
+ destroy_single_repeat();
1454
+ return true;
1455
+ }
1456
+ ++count;
1457
+ ++state_count;
1458
+ pstate = rep->next.p;
1459
+ }while((count < rep->max) && (position != last) && !can_start(*position, rep->_map, mask_skip));
1460
+ }
1461
+ if(position == last)
1462
+ {
1463
+ // can't repeat any more, remove the pushed state:
1464
+ destroy_single_repeat();
1465
+ if((m_match_flags & match_partial) && (position == last) && (position != search_base))
1466
+ m_has_partial_match = true;
1467
+ if(0 == (rep->can_be_null & mask_skip))
1468
+ return true;
1469
+ }
1470
+ else if(count == rep->max)
1471
+ {
1472
+ // can't repeat any more, remove the pushed state:
1473
+ destroy_single_repeat();
1474
+ if(!can_start(*position, rep->_map, mask_skip))
1475
+ return true;
1476
+ }
1477
+ else
1478
+ {
1479
+ pmp->count = count;
1480
+ pmp->last_position = position;
1481
+ }
1482
+ pstate = rep->alt.p;
1483
+ return false;
1484
+ }
1485
+
1486
+ template <class BidiIterator, class Allocator, class traits>
1487
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_fast_dot_repeat(bool r)
1488
+ {
1489
+ saved_single_repeat<BidiIterator>* pmp = static_cast<saved_single_repeat<BidiIterator>*>(m_backup_state);
1490
+
1491
+ // if we have a match, just discard this state:
1492
+ if(r)
1493
+ {
1494
+ destroy_single_repeat();
1495
+ return true;
1496
+ }
1497
+
1498
+ const re_repeat* rep = pmp->rep;
1499
+ std::size_t count = pmp->count;
1500
+
1501
+ BOOST_REGEX_ASSERT(count < rep->max);
1502
+ position = pmp->last_position;
1503
+ if(position != last)
1504
+ {
1505
+
1506
+ // wind forward until we can skip out of the repeat:
1507
+ do
1508
+ {
1509
+ ++position;
1510
+ ++count;
1511
+ ++state_count;
1512
+ }while((count < rep->max) && (position != last) && !can_start(*position, rep->_map, mask_skip));
1513
+ }
1514
+
1515
+ // remember where we got to if this is a leading repeat:
1516
+ if((rep->leading) && (count < rep->max))
1517
+ restart = position;
1518
+ if(position == last)
1519
+ {
1520
+ // can't repeat any more, remove the pushed state:
1521
+ destroy_single_repeat();
1522
+ if((m_match_flags & match_partial) && (position == last) && (position != search_base))
1523
+ m_has_partial_match = true;
1524
+ if(0 == (rep->can_be_null & mask_skip))
1525
+ return true;
1526
+ }
1527
+ else if(count == rep->max)
1528
+ {
1529
+ // can't repeat any more, remove the pushed state:
1530
+ destroy_single_repeat();
1531
+ if(!can_start(*position, rep->_map, mask_skip))
1532
+ return true;
1533
+ }
1534
+ else
1535
+ {
1536
+ pmp->count = count;
1537
+ pmp->last_position = position;
1538
+ }
1539
+ pstate = rep->alt.p;
1540
+ return false;
1541
+ }
1542
+
1543
+ template <class BidiIterator, class Allocator, class traits>
1544
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_char_repeat(bool r)
1545
+ {
1546
+ saved_single_repeat<BidiIterator>* pmp = static_cast<saved_single_repeat<BidiIterator>*>(m_backup_state);
1547
+
1548
+ // if we have a match, just discard this state:
1549
+ if(r)
1550
+ {
1551
+ destroy_single_repeat();
1552
+ return true;
1553
+ }
1554
+
1555
+ const re_repeat* rep = pmp->rep;
1556
+ std::size_t count = pmp->count;
1557
+ pstate = rep->next.p;
1558
+ const char_type what = *reinterpret_cast<const char_type*>(static_cast<const re_literal*>(pstate) + 1);
1559
+ position = pmp->last_position;
1560
+
1561
+ BOOST_REGEX_ASSERT(rep->type == syntax_element_char_rep);
1562
+ BOOST_REGEX_ASSERT(rep->next.p != 0);
1563
+ BOOST_REGEX_ASSERT(rep->alt.p != 0);
1564
+ BOOST_REGEX_ASSERT(rep->next.p->type == syntax_element_literal);
1565
+ BOOST_REGEX_ASSERT(count < rep->max);
1566
+
1567
+ if(position != last)
1568
+ {
1569
+ // wind forward until we can skip out of the repeat:
1570
+ do
1571
+ {
1572
+ if(traits_inst.translate(*position, icase) != what)
1573
+ {
1574
+ // failed repeat match, discard this state and look for another:
1575
+ destroy_single_repeat();
1576
+ return true;
1577
+ }
1578
+ ++count;
1579
+ ++ position;
1580
+ ++state_count;
1581
+ pstate = rep->next.p;
1582
+ }while((count < rep->max) && (position != last) && !can_start(*position, rep->_map, mask_skip));
1583
+ }
1584
+ // remember where we got to if this is a leading repeat:
1585
+ if((rep->leading) && (count < rep->max))
1586
+ restart = position;
1587
+ if(position == last)
1588
+ {
1589
+ // can't repeat any more, remove the pushed state:
1590
+ destroy_single_repeat();
1591
+ if((m_match_flags & match_partial) && (position == last) && (position != search_base))
1592
+ m_has_partial_match = true;
1593
+ if(0 == (rep->can_be_null & mask_skip))
1594
+ return true;
1595
+ }
1596
+ else if(count == rep->max)
1597
+ {
1598
+ // can't repeat any more, remove the pushed state:
1599
+ destroy_single_repeat();
1600
+ if(!can_start(*position, rep->_map, mask_skip))
1601
+ return true;
1602
+ }
1603
+ else
1604
+ {
1605
+ pmp->count = count;
1606
+ pmp->last_position = position;
1607
+ }
1608
+ pstate = rep->alt.p;
1609
+ return false;
1610
+ }
1611
+
1612
+ template <class BidiIterator, class Allocator, class traits>
1613
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_short_set_repeat(bool r)
1614
+ {
1615
+ saved_single_repeat<BidiIterator>* pmp = static_cast<saved_single_repeat<BidiIterator>*>(m_backup_state);
1616
+
1617
+ // if we have a match, just discard this state:
1618
+ if(r)
1619
+ {
1620
+ destroy_single_repeat();
1621
+ return true;
1622
+ }
1623
+
1624
+ const re_repeat* rep = pmp->rep;
1625
+ std::size_t count = pmp->count;
1626
+ pstate = rep->next.p;
1627
+ const unsigned char* map = static_cast<const re_set*>(rep->next.p)->_map;
1628
+ position = pmp->last_position;
1629
+
1630
+ BOOST_REGEX_ASSERT(rep->type == syntax_element_short_set_rep);
1631
+ BOOST_REGEX_ASSERT(rep->next.p != 0);
1632
+ BOOST_REGEX_ASSERT(rep->alt.p != 0);
1633
+ BOOST_REGEX_ASSERT(rep->next.p->type == syntax_element_set);
1634
+ BOOST_REGEX_ASSERT(count < rep->max);
1635
+
1636
+ if(position != last)
1637
+ {
1638
+ // wind forward until we can skip out of the repeat:
1639
+ do
1640
+ {
1641
+ if(!map[static_cast<unsigned char>(traits_inst.translate(*position, icase))])
1642
+ {
1643
+ // failed repeat match, discard this state and look for another:
1644
+ destroy_single_repeat();
1645
+ return true;
1646
+ }
1647
+ ++count;
1648
+ ++ position;
1649
+ ++state_count;
1650
+ pstate = rep->next.p;
1651
+ }while((count < rep->max) && (position != last) && !can_start(*position, rep->_map, mask_skip));
1652
+ }
1653
+ // remember where we got to if this is a leading repeat:
1654
+ if((rep->leading) && (count < rep->max))
1655
+ restart = position;
1656
+ if(position == last)
1657
+ {
1658
+ // can't repeat any more, remove the pushed state:
1659
+ destroy_single_repeat();
1660
+ if((m_match_flags & match_partial) && (position == last) && (position != search_base))
1661
+ m_has_partial_match = true;
1662
+ if(0 == (rep->can_be_null & mask_skip))
1663
+ return true;
1664
+ }
1665
+ else if(count == rep->max)
1666
+ {
1667
+ // can't repeat any more, remove the pushed state:
1668
+ destroy_single_repeat();
1669
+ if(!can_start(*position, rep->_map, mask_skip))
1670
+ return true;
1671
+ }
1672
+ else
1673
+ {
1674
+ pmp->count = count;
1675
+ pmp->last_position = position;
1676
+ }
1677
+ pstate = rep->alt.p;
1678
+ return false;
1679
+ }
1680
+
1681
+ template <class BidiIterator, class Allocator, class traits>
1682
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_long_set_repeat(bool r)
1683
+ {
1684
+ typedef typename traits::char_class_type m_type;
1685
+ saved_single_repeat<BidiIterator>* pmp = static_cast<saved_single_repeat<BidiIterator>*>(m_backup_state);
1686
+
1687
+ // if we have a match, just discard this state:
1688
+ if(r)
1689
+ {
1690
+ destroy_single_repeat();
1691
+ return true;
1692
+ }
1693
+
1694
+ const re_repeat* rep = pmp->rep;
1695
+ std::size_t count = pmp->count;
1696
+ pstate = rep->next.p;
1697
+ const re_set_long<m_type>* set = static_cast<const re_set_long<m_type>*>(pstate);
1698
+ position = pmp->last_position;
1699
+
1700
+ BOOST_REGEX_ASSERT(rep->type == syntax_element_long_set_rep);
1701
+ BOOST_REGEX_ASSERT(rep->next.p != 0);
1702
+ BOOST_REGEX_ASSERT(rep->alt.p != 0);
1703
+ BOOST_REGEX_ASSERT(rep->next.p->type == syntax_element_long_set);
1704
+ BOOST_REGEX_ASSERT(count < rep->max);
1705
+
1706
+ if(position != last)
1707
+ {
1708
+ // wind forward until we can skip out of the repeat:
1709
+ do
1710
+ {
1711
+ if(position == re_is_set_member(position, last, set, re.get_data(), icase))
1712
+ {
1713
+ // failed repeat match, discard this state and look for another:
1714
+ destroy_single_repeat();
1715
+ return true;
1716
+ }
1717
+ ++position;
1718
+ ++count;
1719
+ ++state_count;
1720
+ pstate = rep->next.p;
1721
+ }while((count < rep->max) && (position != last) && !can_start(*position, rep->_map, mask_skip));
1722
+ }
1723
+ // remember where we got to if this is a leading repeat:
1724
+ if((rep->leading) && (count < rep->max))
1725
+ restart = position;
1726
+ if(position == last)
1727
+ {
1728
+ // can't repeat any more, remove the pushed state:
1729
+ destroy_single_repeat();
1730
+ if((m_match_flags & match_partial) && (position == last) && (position != search_base))
1731
+ m_has_partial_match = true;
1732
+ if(0 == (rep->can_be_null & mask_skip))
1733
+ return true;
1734
+ }
1735
+ else if(count == rep->max)
1736
+ {
1737
+ // can't repeat any more, remove the pushed state:
1738
+ destroy_single_repeat();
1739
+ if(!can_start(*position, rep->_map, mask_skip))
1740
+ return true;
1741
+ }
1742
+ else
1743
+ {
1744
+ pmp->count = count;
1745
+ pmp->last_position = position;
1746
+ }
1747
+ pstate = rep->alt.p;
1748
+ return false;
1749
+ }
1750
+
1751
+ template <class BidiIterator, class Allocator, class traits>
1752
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_non_greedy_repeat(bool r)
1753
+ {
1754
+ saved_position<BidiIterator>* pmp = static_cast<saved_position<BidiIterator>*>(m_backup_state);
1755
+ if(!r)
1756
+ {
1757
+ position = pmp->position;
1758
+ pstate = pmp->pstate;
1759
+ ++(*next_count);
1760
+ }
1761
+ boost::BOOST_REGEX_DETAIL_NS::inplace_destroy(pmp++);
1762
+ m_backup_state = pmp;
1763
+ return r;
1764
+ }
1765
+
1766
+ template <class BidiIterator, class Allocator, class traits>
1767
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_recursion(bool r)
1768
+ {
1769
+ // We are backtracking back inside a recursion, need to push the info
1770
+ // back onto the recursion stack, and do so unconditionally, otherwise
1771
+ // we can get mismatched pushes and pops...
1772
+ saved_recursion<results_type>* pmp = static_cast<saved_recursion<results_type>*>(m_backup_state);
1773
+ if (!r)
1774
+ {
1775
+ recursion_stack.push_back(recursion_info<results_type>());
1776
+ recursion_stack.back().idx = pmp->recursion_id;
1777
+ recursion_stack.back().preturn_address = pmp->preturn_address;
1778
+ recursion_stack.back().results = pmp->prior_results;
1779
+ recursion_stack.back().location_of_start = position;
1780
+ *m_presult = pmp->internal_results;
1781
+ }
1782
+ boost::BOOST_REGEX_DETAIL_NS::inplace_destroy(pmp++);
1783
+ m_backup_state = pmp;
1784
+ return true;
1785
+ }
1786
+
1787
+ template <class BidiIterator, class Allocator, class traits>
1788
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_recursion_pop(bool r)
1789
+ {
1790
+ // Backtracking out of a recursion, we must pop state off the recursion
1791
+ // stack unconditionally to ensure matched pushes and pops:
1792
+ saved_state* pmp = static_cast<saved_state*>(m_backup_state);
1793
+ if (!r && !recursion_stack.empty())
1794
+ {
1795
+ *m_presult = recursion_stack.back().results;
1796
+ position = recursion_stack.back().location_of_start;
1797
+ recursion_stack.pop_back();
1798
+ }
1799
+ boost::BOOST_REGEX_DETAIL_NS::inplace_destroy(pmp++);
1800
+ m_backup_state = pmp;
1801
+ return true;
1802
+ }
1803
+
1804
+ template <class BidiIterator, class Allocator, class traits>
1805
+ void perl_matcher<BidiIterator, Allocator, traits>::push_recursion_pop()
1806
+ {
1807
+ saved_state* pmp = static_cast<saved_state*>(m_backup_state);
1808
+ --pmp;
1809
+ if(pmp < m_stack_base)
1810
+ {
1811
+ extend_stack();
1812
+ pmp = static_cast<saved_state*>(m_backup_state);
1813
+ --pmp;
1814
+ }
1815
+ (void) new (pmp)saved_state(15);
1816
+ m_backup_state = pmp;
1817
+ }
1818
+
1819
+ template <class BidiIterator, class Allocator, class traits>
1820
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_commit(bool b)
1821
+ {
1822
+ boost::BOOST_REGEX_DETAIL_NS::inplace_destroy(m_backup_state++);
1823
+ while(unwind(b) && !m_unwound_lookahead){}
1824
+ if(m_unwound_lookahead && pstate)
1825
+ {
1826
+ //
1827
+ // If we stop because we just unwound an assertion, put the
1828
+ // commit state back on the stack again:
1829
+ //
1830
+ m_unwound_lookahead = false;
1831
+ saved_state* pmp = m_backup_state;
1832
+ --pmp;
1833
+ if(pmp < m_stack_base)
1834
+ {
1835
+ extend_stack();
1836
+ pmp = m_backup_state;
1837
+ --pmp;
1838
+ }
1839
+ (void) new (pmp)saved_state(16);
1840
+ m_backup_state = pmp;
1841
+ }
1842
+ // This prevents us from stopping when we exit from an independent sub-expression:
1843
+ m_independent = false;
1844
+ return false;
1845
+ }
1846
+
1847
+ template <class BidiIterator, class Allocator, class traits>
1848
+ bool perl_matcher<BidiIterator, Allocator, traits>::unwind_then(bool b)
1849
+ {
1850
+ // Unwind everything till we hit an alternative:
1851
+ boost::BOOST_REGEX_DETAIL_NS::inplace_destroy(m_backup_state++);
1852
+ bool result = false;
1853
+ result = unwind(b);
1854
+ while(result && !m_unwound_alt)
1855
+ {
1856
+ result = unwind(b);
1857
+ }
1858
+ // We're now pointing at the next alternative, need one more backtrack
1859
+ // since *all* the other alternatives must fail once we've reached a THEN clause:
1860
+ if(result && m_unwound_alt)
1861
+ unwind(b);
1862
+ return false;
1863
+ }
1864
+
1865
+ } // namespace BOOST_REGEX_DETAIL_NS
1866
+ } // namespace boost
1867
+
1868
+ #ifdef BOOST_REGEX_MSVC
1869
+ # pragma warning(pop)
1870
+ #endif
1871
+
1872
+ #endif