File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 85
85
INTERFACE
86
86
asio::asio
87
87
)
88
- endif ()
88
+ target_compile_definitions (Crow INTERFACE ASIO_NO_DEPRECATED)
89
+ endif ()
89
90
90
91
target_compile_definitions (Crow INTERFACE "" )
91
92
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ TEST_CASE("SSL")
45
45
asio::io_context ioc;
46
46
{
47
47
asio::ssl::stream<asio::ip::tcp::socket> c (ioc, ctx);
48
- c.lowest_layer ().connect (asio::ip::tcp::endpoint (asio::ip::address::from_string (LOCALHOST_ADDRESS), 45460 ));
48
+ c.lowest_layer ().connect (asio::ip::tcp::endpoint (asio::ip::make_address (LOCALHOST_ADDRESS), 45460 ));
49
49
50
50
c.handshake (asio::ssl::stream_base::client);
51
51
c.write_some (asio::buffer (sendmsg));
Original file line number Diff line number Diff line change @@ -3986,20 +3986,20 @@ TEST_CASE("task_timer")
3986
3986
asio::steady_timer t (io_context);
3987
3987
asio_error_code ec;
3988
3988
3989
- t.expires_from_now (3 * timer.get_tick_length ());
3989
+ t.expires_after (3 * timer.get_tick_length ());
3990
3990
t.wait (ec);
3991
3991
// we are at 3 ticks, nothing be changed yet
3992
3992
CHECK (!ec);
3993
3993
CHECK (a == false );
3994
3994
CHECK (b == false );
3995
- t.expires_from_now (3 * timer.get_tick_length ());
3995
+ t.expires_after (3 * timer.get_tick_length ());
3996
3996
t.wait (ec);
3997
3997
// we are at 3+3 = 6 ticks, so first task_timer handler should have runned
3998
3998
CHECK (!ec);
3999
3999
CHECK (a == true );
4000
4000
CHECK (b == false );
4001
4001
4002
- t.expires_from_now (5 * timer.get_tick_length ());
4002
+ t.expires_after (5 * timer.get_tick_length ());
4003
4003
t.wait (ec);
4004
4004
// we are at 3+3 +5 = 11 ticks, both task_timer handlers shoudl have run now
4005
4005
CHECK (!ec);
@@ -4114,12 +4114,12 @@ TEST_CASE("option_header_passed_in_full")
4114
4114
4115
4115
app.wait_for_server_start ();
4116
4116
4117
- asio::io_service is;
4117
+ asio::io_context is;
4118
4118
4119
4119
auto make_request = [&](const std::string& rq) {
4120
4120
asio::ip::tcp::socket c (is);
4121
4121
c.connect (asio::ip::tcp::endpoint (
4122
- asio::ip::address::from_string (LOCALHOST_ADDRESS), 45451 ));
4122
+ asio::ip::make_address (LOCALHOST_ADDRESS), 45451 ));
4123
4123
c.send (asio::buffer (rq));
4124
4124
std::string fullString{};
4125
4125
asio::error_code error;
You can’t perform that action at this time.
0 commit comments