mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 05:17:26 +02:00
Saved handlers are dispatched
This commit is contained in:
@ -5,6 +5,7 @@ Version 194:
|
|||||||
* Don't use-after-free in test
|
* Don't use-after-free in test
|
||||||
* Tidy up ssl_stream (experimental)
|
* Tidy up ssl_stream (experimental)
|
||||||
* Dynamic buffer improvements
|
* Dynamic buffer improvements
|
||||||
|
* Saved handlers are dispatched
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -11,7 +11,9 @@
|
|||||||
#define BOOST_BEAST_CORE_DETAIL_SAVED_HANDLER_HPP
|
#define BOOST_BEAST_CORE_DETAIL_SAVED_HANDLER_HPP
|
||||||
|
|
||||||
#include <boost/beast/core/bind_handler.hpp>
|
#include <boost/beast/core/bind_handler.hpp>
|
||||||
|
#include <boost/asio/dispatch.hpp>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <utility>
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace beast {
|
namespace beast {
|
||||||
@ -39,7 +41,7 @@ class saved_handler
|
|||||||
|
|
||||||
void operator()() override
|
void operator()() override
|
||||||
{
|
{
|
||||||
h_();
|
boost::asio::dispatch(std::move(h_));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user