diff --git a/hecl/include/hecl/hecl.hpp b/hecl/include/hecl/hecl.hpp index d8e49c0e3..c6d768a86 100644 --- a/hecl/include/hecl/hecl.hpp +++ b/hecl/include/hecl/hecl.hpp @@ -1048,10 +1048,10 @@ public: static std::string TrimWhitespace(std::string_view str) { auto bit = str.begin(); - while (bit != str.cend() && isspace(*bit)) + while (bit != str.cend() && std::isspace(static_cast(*bit))) ++bit; auto eit = str.end(); - while (eit != str.cbegin() && isspace(*(eit - 1))) + while (eit != str.cbegin() && std::isspace(static_cast(*(eit - 1)))) --eit; return {bit, eit}; } @@ -1071,10 +1071,10 @@ public: static SystemString TrimWhitespace(SystemStringView str) { auto bit = str.begin(); - while (bit != str.cend() && iswspace(*bit)) + while (bit != str.cend() && std::iswspace(*bit)) ++bit; auto eit = str.end(); - while (eit != str.cbegin() && iswspace(*(eit - 1))) + while (eit != str.cbegin() && std::iswspace(*(eit - 1))) --eit; return {bit, eit}; }