forked from boostorg/beast
Use bind_front_handler:
The implementation uses bind_front_handler to reduce the resources consumed when instantiating templates during compilation.
This commit is contained in:
1 parent
d581bcc348
commit
15dd535c24
12 files changed
+29
-25
No files matched your search
@@ -147,7 +147,7 @@ operator()()
|
||||
BOOST_ASSERT(! f.invoked);
|
||||
return boost::asio::post(
|
||||
s_.get_executor(),
|
||||
bind_handler(std::move(*this), ec, 0));
|
||||
bind_front_handler(std::move(*this), ec, 0));
|
||||
}
|
||||
if(f.invoked)
|
||||
{
|
||||
@@ -160,7 +160,7 @@ operator()()
|
||||
}
|
||||
return boost::asio::post(
|
||||
s_.get_executor(),
|
||||
bind_handler(std::move(*this), ec, 0));
|
||||
bind_front_handler(std::move(*this), ec, 0));
|
||||
}
|
||||
|
||||
template<
|
||||
|
||||
Reference in new issue
Block a user