Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdfaa858

Browse files
committed
Fix for boost 1.70 (get_io_service() was deprecated and was removed)
1 parent0a4d2a6 commitdfaa858

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎boost/network/protocol/http/client/connection/async_base.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ struct async_connection_base {
5959
async_connection;
6060
typedeftypename delegate_factory<Tag>::type delegate_factory_type;
6161
auto delegate =delegate_factory_type::new_connection_delegate(
62-
resolver.get_io_service(), https, always_verify_peer,
62+
(boost::asio::io_context &)resolver.get_executor().context(), https, always_verify_peer,
6363
certificate_filename, verify_path, certificate_file, private_key_file,
6464
ciphers, sni_hostname, ssl_options);
6565
auto temp = std::make_shared<async_connection>(

‎boost/network/protocol/http/client/connection/async_normal.hpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ struct http_async_connection
154154
connection_delegate_ptr delegate)
155155
: timeout_(timeout),
156156
remove_chunk_markers_(remove_chunk_markers),
157-
timer_(resolver.get_io_service()),
157+
timer_((boost::asio::io_context &)resolver.get_executor().context()),
158158
is_timedout_(false),
159159
follow_redirect_(follow_redirect),
160160
resolver_(resolver),
161161
resolve_(std::move(resolve)),
162-
request_strand_(resolver.get_io_service()),
162+
request_strand_((boost::asio::io_context &)resolver.get_executor().context()),
163163
delegate_(std::move(delegate)) {}
164164

165165
// This is the main entry point for the connection/request pipeline.

‎boost/network/protocol/http/client/connection/connection_delegate_factory.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct connection_delegate_factory {
3434
// This is the factory method that actually returns the delegate instance.
3535
// TODO(dberris): Support passing in proxy settings when crafting connections.
3636
static connection_delegate_ptrnew_connection_delegate(
37-
boost::asio::io_service& service,bool https,bool always_verify_peer,
37+
boost::asio::io_context& service,bool https,bool always_verify_peer,
3838
optional<string_type> certificate_filename,
3939
optional<string_type> verify_path, optional<string_type> certificate_file,
4040
optional<string_type> private_key_file, optional<string_type> ciphers,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp