Support boost 1.69

This commit is contained in:
seelabs
2018-12-12 10:06:45 -05:00
committed by Nik Bougalis
parent 1bb32134f8
commit 9695fd44ba
5 changed files with 495 additions and 352 deletions

View File

@@ -291,14 +291,20 @@ on_write(error_code const& ec)
start_timer();
if(! result.first)
impl().ws_.async_write_some(
result.first, result.second, strand_.wrap(std::bind(
&BaseWSPeer::on_write, impl().shared_from_this(),
std::placeholders::_1)));
static_cast<bool>(result.first),
result.second,
strand_.wrap(std::bind(
&BaseWSPeer::on_write,
impl().shared_from_this(),
std::placeholders::_1)));
else
impl().ws_.async_write_some(
result.first, result.second, strand_.wrap(std::bind(
&BaseWSPeer::on_write_fin, impl().shared_from_this(),
std::placeholders::_1)));
static_cast<bool>(result.first),
result.second,
strand_.wrap(std::bind(
&BaseWSPeer::on_write_fin,
impl().shared_from_this(),
std::placeholders::_1)));
}
template<class Handler, class Impl>