From 89eccab7f14e5aaa66dbbf4bd7e3b185e8fd6a32 Mon Sep 17 00:00:00 2001 From: elsid Date: Wed, 24 May 2023 12:45:47 +0200 Subject: [PATCH] Add missing include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In file included from /home/elsid/dev/openmw/apps/openmw_test_suite/settings/testvalues.cpp:1: /home/elsid/dev/openmw/components/misc/strings/conversion.hpp: In function ‘std::string Misc::StringUtils::toHex(std::string_view)’: /home/elsid/dev/openmw/components/misc/strings/conversion.hpp:139:87: error: ‘uint8_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’? 139 | const std::ptrdiff_t space = static_cast(static_cast(v) <= 0xf); | ^~~~~~~ | wint_t /home/elsid/dev/openmw/components/misc/strings/conversion.hpp:140:97: error: ‘uint8_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’? 140 | const auto [ptr, ec] = std::to_chars(out + space, out + space + 2, static_cast(v), 16); | ^~~~~~~ | wint_t --- components/misc/strings/conversion.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/components/misc/strings/conversion.hpp b/components/misc/strings/conversion.hpp index ae5535f39b..b5b265bf5e 100644 --- a/components/misc/strings/conversion.hpp +++ b/components/misc/strings/conversion.hpp @@ -2,6 +2,7 @@ #define COMPONENTS_MISC_STRINGS_CONVERSION_H #include +#include #include #include #include