Skip to content

Commit 268bd9b

Browse files
committed
Use boost::asio::string_view for gcc compatibility
1 parent 7f612e1 commit 268bd9b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

samples/proxy/client.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333

3434
using namespace std::literals;
3535

36-
constexpr auto c_host = "127.0.0.1"sv;
37-
constexpr auto c_port = "8080"sv;
38-
constexpr auto c_target = "/graphql"sv;
36+
constexpr boost::asio::string_view c_host { "127.0.0.1" };
37+
constexpr boost::asio::string_view c_port { "8080" };
38+
constexpr boost::asio::string_view c_target { "/graphql" };
3939
constexpr int c_version = 11; // HTTP 1.1
4040

4141
using namespace graphql;

samples/proxy/server.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636

3737
using namespace std::literals;
3838

39-
constexpr auto c_host = "127.0.0.1"sv;
39+
constexpr boost::asio::string_view c_host { "127.0.0.1" };
4040
constexpr unsigned short c_port = 8080;
41-
constexpr auto c_target = "/graphql"sv;
41+
constexpr boost::asio::string_view c_target { "/graphql" };
4242

4343
using namespace graphql;
4444

0 commit comments

Comments
 (0)