mirror of
https://github.com/Xahau/xahaud.git
synced 2026-09-27 23:48:05 +00:00
fix: brace-initialise HTTPClient::Query for clang
Query is an aggregate; make_shared<Query>(a, b, c) needs C++20 parenthesised
aggregate initialisation, which GCC 11 accepts and CI's clang rejects
('no matching constructor'). Same code upstream, which builds with a newer
clang.
This commit is contained in:
@@ -151,10 +151,12 @@ public:
|
||||
{
|
||||
JLOG(j_.trace()) << "Fetch: " << mDeqSites[0];
|
||||
|
||||
auto query = std::make_shared<Query>(
|
||||
// Query is an aggregate: brace-initialise it rather than relying on
|
||||
// C++20 parenthesised aggregate init, which clang < 16 rejects.
|
||||
auto query = std::make_shared<Query>(Query{
|
||||
mDeqSites[0],
|
||||
std::to_string(mPort),
|
||||
boost::asio::ip::resolver_query_base::numeric_service);
|
||||
boost::asio::ip::resolver_query_base::numeric_service});
|
||||
mQuery = query;
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user