Skip to content

Commit 1b09640

Browse files
committed
Fix build errors without modules
1 parent 25eb738 commit 1b09640

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

example/client/http_client.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ do_request(
3535
"Host: " + std::string(host) + "\r\n"
3636
"Connection: close\r\n"
3737
"\r\n";
38-
(co_await corosio::write(
39-
stream, capy::const_buffer(request.data(), request.size()))).value();
38+
co_await corosio::write(
39+
stream, capy::const_buffer(request.data(), request.size()));
4040

4141
// Read the entire response
4242
std::string response;
@@ -59,7 +59,7 @@ run_client(
5959
s.open();
6060

6161
// Connect to the server (throws on error)
62-
(co_await s.connect(corosio::endpoint(addr, port))).value();
62+
co_await s.connect(corosio::endpoint(addr, port));
6363

6464
co_await do_request(s, addr.to_string());
6565
}

test/unit/resolver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <boost/capy/cond.hpp>
2222
#include <boost/capy/ex/run_async.hpp>
2323
#include <boost/capy/task.hpp>
24+
#include <boost/url/ipv4_address.hpp>
2425

2526
#include "test_suite.hpp"
2627

0 commit comments

Comments
 (0)