From 55e0ca966335fb87c136524197bfbb2346da37ac Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Mon, 27 Sep 2021 13:12:37 +0200 Subject: httpsys: added `if constexpr` to silence compiler warning on Windows --- zenhttp/httpsys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zenhttp/httpsys.cpp') diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp index 26bba5484..747e48bb3 100644 --- a/zenhttp/httpsys.cpp +++ b/zenhttp/httpsys.cpp @@ -42,7 +42,7 @@ UTF8_to_wstring(const char* in) if (((*in & 0xc0) != 0x80) && (codepoint <= 0x10ffff)) { - if (sizeof(wchar_t) > 2) + if constexpr (sizeof(wchar_t) > 2) { out.append(1, static_cast(codepoint)); } -- cgit v1.2.3