From 5faadaa000f941cdfb72e11841b19db783662601 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 17 Jun 2022 19:57:46 -0700 Subject: [PATCH] ircd::http: Fix binary op (gnu++20). --- ircd/http.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/http.cc b/ircd/http.cc index a04d5dfc0..ee493984e 100644 --- a/ircd/http.cc +++ b/ircd/http.cc @@ -1145,7 +1145,7 @@ ircd::http::serialized(const vector_view &headers) // indicate an extra space for a null string terminator to not overlof const size_t initial{!headers.empty()}; return std::accumulate(std::begin(headers), std::end(headers), initial, [] - (auto &ret, const auto &pair) + (auto &&ret, const auto &pair) { // key : SP value CRLF return ret += pair.first.size() + 1 + 1 + pair.second.size() + 2;