forked from boostorg/beast
Fix style errors
This commit is contained in:
11 files changed
+39
-98
No files matched your search
@@ -288,7 +288,7 @@ struct associated_allocator<handler, Allocator>
|
||||
template<class Executor>
|
||||
struct associated_executor<handler, Executor>
|
||||
{
|
||||
using type = boost::asio::any_io_executor;
|
||||
using type = any_io_executor;
|
||||
|
||||
static
|
||||
type
|
||||
|
||||
@@ -38,9 +38,9 @@ namespace ssl = boost::asio::ssl;
|
||||
using tcp = net::ip::tcp;
|
||||
|
||||
net::io_context ioc;
|
||||
auto work = net::any_io_executor(
|
||||
net::any_io_executor work =
|
||||
net::prefer(ioc.get_executor(),
|
||||
net::execution::outstanding_work.tracked));
|
||||
net::execution::outstanding_work.tracked);
|
||||
std::thread t{[&](){ ioc.run(); }};
|
||||
|
||||
error_code ec;
|
||||
|
||||
@@ -37,10 +37,10 @@ net::const_buffer get_next_chunk_body()
|
||||
void fxx() {
|
||||
|
||||
net::io_context ioc;
|
||||
auto work = net::any_io_executor(
|
||||
net::any_io_executor work =
|
||||
net::prefer(
|
||||
ioc.get_executor(),
|
||||
net::execution::outstanding_work.tracked));
|
||||
net::execution::outstanding_work.tracked);
|
||||
std::thread t{[&](){ ioc.run(); }};
|
||||
net::ip::tcp::socket sock{ioc};
|
||||
|
||||
|
||||
@@ -17,10 +17,10 @@ using tcp = net::ip::tcp;
|
||||
|
||||
error_code ec;
|
||||
net::io_context ioc;
|
||||
auto work = net::any_io_executor(
|
||||
net::any_io_executor work =
|
||||
net::prefer(
|
||||
ioc.get_executor(),
|
||||
net::execution::outstanding_work.tracked));
|
||||
net::execution::outstanding_work.tracked);
|
||||
std::thread t{[&](){ ioc.run(); }};
|
||||
|
||||
tcp::socket sock(ioc);
|
||||
|
||||
Reference in new issue
Block a user