Replace BOOST_ASIO_INITFN_RESULT_TYPE with BOOST_ASIO_INITFN_AUTO_RESULT_TYPE

asio::deferred doesn't work with BOOST_ASIO_INITFN_RESULT_TYPE
Fixes #2727.
This commit is contained in:
Mohammad authored and Mohammad Nejati committed 2023-09-05 08:54:08 +03:30
1 parent 35d533299c
commit 45d4f7f306
14 files changed
+107 -42

No files matched your search

+1 -1
View File
@@ -1298,7 +1298,7 @@ public:
resolve_results.begin()->endpoint(),
net::use_awaitable))>);
auto comparison_function = [](error_code&, net::ip::tcp::endpoint) { return true; };
auto comparison_function = [](error_code const&, net::ip::tcp::endpoint) { return true; };
static_assert(std::is_same_v<
net::awaitable<net::ip::tcp::resolver::results_type::const_iterator>, decltype(