From 90cb5acf2eb56127b6dade97d754a64f023e119c Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Fri, 7 Jan 2022 15:49:25 +0100 Subject: Removed unused include --- zenhttp/httpasio.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'zenhttp/httpasio.cpp') diff --git a/zenhttp/httpasio.cpp b/zenhttp/httpasio.cpp index e1d417d06..9aa40e377 100644 --- a/zenhttp/httpasio.cpp +++ b/zenhttp/httpasio.cpp @@ -7,7 +7,6 @@ #include #include -#include ZEN_THIRD_PARTY_INCLUDES_START #if ZEN_PLATFORM_WINDOWS -- cgit v1.2.3 From 056f1f0556dc2bb82f8e7b659f6e515c34debf3b Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Fri, 7 Jan 2022 15:49:36 +0100 Subject: Added missing vector include --- zenhttp/httpasio.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'zenhttp/httpasio.cpp') diff --git a/zenhttp/httpasio.cpp b/zenhttp/httpasio.cpp index 9aa40e377..4d98ac15e 100644 --- a/zenhttp/httpasio.cpp +++ b/zenhttp/httpasio.cpp @@ -7,6 +7,7 @@ #include #include +#include ZEN_THIRD_PARTY_INCLUDES_START #if ZEN_PLATFORM_WINDOWS -- cgit v1.2.3 From 871a674a30e0cfdf35a4b754c3c7b8be453f0ff2 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Fri, 7 Jan 2022 16:05:37 +0100 Subject: LLVM's libc++ cannot emplace_back(x,y,z) without a ctor(x,y,z) --- zenhttp/httpasio.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'zenhttp/httpasio.cpp') diff --git a/zenhttp/httpasio.cpp b/zenhttp/httpasio.cpp index 4d98ac15e..6c2d65bb6 100644 --- a/zenhttp/httpasio.cpp +++ b/zenhttp/httpasio.cpp @@ -154,6 +154,14 @@ struct HttpRequest private: struct HeaderEntry { + HeaderEntry() = default; + + HeaderEntry(std::string_view InName, std::string_view InValue) + : Name(InName) + , Value(InValue) + { + } + std::string_view Name; std::string_view Value; }; -- cgit v1.2.3 From 9086231f3923c0df6d9ef817441bfae5e134e8ff Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Mon, 10 Jan 2022 12:07:03 +0100 Subject: Converted use of _format UDL to fmt::format --- zenhttp/httpasio.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'zenhttp/httpasio.cpp') diff --git a/zenhttp/httpasio.cpp b/zenhttp/httpasio.cpp index 6c2d65bb6..7a6efd884 100644 --- a/zenhttp/httpasio.cpp +++ b/zenhttp/httpasio.cpp @@ -28,7 +28,6 @@ ZEN_THIRD_PARTY_INCLUDES_END namespace zen::asio_http { using namespace std::literals; -using namespace fmt::literals; struct HttpAcceptor; struct HttpRequest; @@ -1135,7 +1134,7 @@ HttpAsioServerImpl::Start(uint16_t Port, int ThreadCount) for (int i = 0; i < ThreadCount; ++i) { m_ThreadPool.emplace_back([this, Index = i + 1] { - SetCurrentThreadName("asio worker {}"_format(Index)); + SetCurrentThreadName(fmt::format("asio worker {}", Index)); try { -- cgit v1.2.3