mirror of
https://github.com/boostorg/beast.git
synced 2025-08-03 14:54:32 +02:00
Tidying:
fix #1311, fix #1310, fix #1309 * Remove unused include directive * Remove redundant static_assert * Remove redundant use of bind_handler Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
committed by
Vinnie Falco
parent
9816d61f38
commit
5ade2a5050
@@ -4,6 +4,7 @@ Version 190:
|
|||||||
* Unit test framework is experimental
|
* Unit test framework is experimental
|
||||||
* Add buffers_range
|
* Add buffers_range
|
||||||
* Rename experimental directory
|
* Rename experimental directory
|
||||||
|
* Improve compilation of tests for continuous integration
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -10,7 +10,6 @@
|
|||||||
#ifndef BOOST_BEAST_CORE_IMPL_TIMOUT_SOCKET_HPP
|
#ifndef BOOST_BEAST_CORE_IMPL_TIMOUT_SOCKET_HPP
|
||||||
#define BOOST_BEAST_CORE_IMPL_TIMOUT_SOCKET_HPP
|
#define BOOST_BEAST_CORE_IMPL_TIMOUT_SOCKET_HPP
|
||||||
|
|
||||||
#include <boost/beast/core/bind_handler.hpp>
|
|
||||||
#include <boost/beast/core/type_traits.hpp>
|
#include <boost/beast/core/type_traits.hpp>
|
||||||
#include <boost/beast/_experimental/core/detail/timeout_work_guard.hpp>
|
#include <boost/beast/_experimental/core/detail/timeout_work_guard.hpp>
|
||||||
#include <boost/asio/executor_work_guard.hpp>
|
#include <boost/asio/executor_work_guard.hpp>
|
||||||
|
@@ -58,9 +58,6 @@ class handler_ptr
|
|||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static_assert(std::is_nothrow_destructible<T>::value,
|
|
||||||
"T must be nothrow destructible");
|
|
||||||
|
|
||||||
/// The type of element stored
|
/// The type of element stored
|
||||||
using element_type = T;
|
using element_type = T;
|
||||||
|
|
||||||
|
@@ -294,7 +294,7 @@ operator()(
|
|||||||
BOOST_ASIO_CORO_YIELD
|
BOOST_ASIO_CORO_YIELD
|
||||||
boost::asio::post(
|
boost::asio::post(
|
||||||
s_.get_executor(),
|
s_.get_executor(),
|
||||||
bind_handler(std::move(*this)));
|
std::move(*this));
|
||||||
goto upcall;
|
goto upcall;
|
||||||
}
|
}
|
||||||
for(;;)
|
for(;;)
|
||||||
|
Reference in New Issue
Block a user