mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 21:34:46 +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
|
||||
* Add buffers_range
|
||||
* Rename experimental directory
|
||||
* Improve compilation of tests for continuous integration
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@@ -10,7 +10,6 @@
|
||||
#ifndef 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/_experimental/core/detail/timeout_work_guard.hpp>
|
||||
#include <boost/asio/executor_work_guard.hpp>
|
||||
|
@@ -58,9 +58,6 @@ class handler_ptr
|
||||
void clear();
|
||||
|
||||
public:
|
||||
static_assert(std::is_nothrow_destructible<T>::value,
|
||||
"T must be nothrow destructible");
|
||||
|
||||
/// The type of element stored
|
||||
using element_type = T;
|
||||
|
||||
|
@@ -294,7 +294,7 @@ operator()(
|
||||
BOOST_ASIO_CORO_YIELD
|
||||
boost::asio::post(
|
||||
s_.get_executor(),
|
||||
bind_handler(std::move(*this)));
|
||||
std::move(*this));
|
||||
goto upcall;
|
||||
}
|
||||
for(;;)
|
||||
@@ -991,7 +991,7 @@ operator<<(std::ostream& os,
|
||||
{
|
||||
os.setstate(std::ios::failbit);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
while(! sr.is_done());
|
||||
return os;
|
||||
|
Reference in New Issue
Block a user