Saved handlers are dispatched

This commit is contained in:
Vinnie Falco
2018-12-01 04:37:24 -08:00
parent 29cf6ce61f
commit f18764424c
2 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,7 @@ Version 194:
* Don't use-after-free in test
* Tidy up ssl_stream (experimental)
* Dynamic buffer improvements
* Saved handlers are dispatched
--------------------------------------------------------------------------------

View File

@ -11,7 +11,9 @@
#define BOOST_BEAST_CORE_DETAIL_SAVED_HANDLER_HPP
#include <boost/beast/core/bind_handler.hpp>
#include <boost/asio/dispatch.hpp>
#include <memory>
#include <utility>
namespace boost {
namespace beast {
@ -39,7 +41,7 @@ class saved_handler
void operator()() override
{
h_();
boost::asio::dispatch(std::move(h_));
}
};