src/cxx_supportlib/vendor-modified/boost/asio/impl/post.hpp in passenger-6.0.11 vs src/cxx_supportlib/vendor-modified/boost/asio/impl/post.hpp in passenger-6.0.12

- old
+ new

@@ -55,11 +55,12 @@ execution::execute( boost::asio::prefer( boost::asio::require(ex, execution::blocking.never), execution::relationship.fork, execution::allocator(alloc)), - BOOST_ASIO_MOVE_CAST(CompletionHandler)(handler)); + boost::asio::detail::bind_handler( + BOOST_ASIO_MOVE_CAST(CompletionHandler)(handler))); } template <typename CompletionHandler> void operator()(BOOST_ASIO_MOVE_ARG(CompletionHandler) handler, typename enable_if< @@ -76,11 +77,12 @@ (get_associated_executor)(handler)); typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); - ex.post(BOOST_ASIO_MOVE_CAST(CompletionHandler)(handler), alloc); + ex.post(boost::asio::detail::bind_handler( + BOOST_ASIO_MOVE_CAST(CompletionHandler)(handler)), alloc); } }; template <typename Executor> class initiate_post_with_executor @@ -120,11 +122,12 @@ execution::execute( boost::asio::prefer( boost::asio::require(ex_, execution::blocking.never), execution::relationship.fork, execution::allocator(alloc)), - BOOST_ASIO_MOVE_CAST(CompletionHandler)(handler)); + boost::asio::detail::bind_handler( + BOOST_ASIO_MOVE_CAST(CompletionHandler)(handler))); } template <typename CompletionHandler> void operator()(BOOST_ASIO_MOVE_ARG(CompletionHandler) handler, typename enable_if< @@ -174,10 +177,11 @@ typedef typename decay<CompletionHandler>::type handler_t; typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); - ex_.post(BOOST_ASIO_MOVE_CAST(CompletionHandler)(handler), alloc); + ex_.post(boost::asio::detail::bind_handler( + BOOST_ASIO_MOVE_CAST(CompletionHandler)(handler)), alloc); } template <typename CompletionHandler> void operator()(BOOST_ASIO_MOVE_ARG(CompletionHandler) handler, typename enable_if<