Fix style errors

This commit is contained in:
Richard Hodges committed 2020-07-04 08:12:10 +02:00
1 parent b84d8ad3d4
commit de1e63c597
11 files changed
+39 -98

No files matched your search

+1 -1
View File
@@ -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
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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};
+2 -2
View File
@@ -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);