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:
Damian Jarek
2018-11-21 01:09:50 +01:00
committed by Vinnie Falco
parent 9816d61f38
commit 5ade2a5050
4 changed files with 3 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ Version 190:
* Unit test framework is experimental
* Add buffers_range
* Rename experimental directory
* Improve compilation of tests for continuous integration
--------------------------------------------------------------------------------

View File

@@ -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>

View File

@@ -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;

View File

@@ -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;