diff --git a/components/to_utf8/to_utf8.cpp b/components/to_utf8/to_utf8.cpp index 15fb8b26c0..7e34147b1c 100644 --- a/components/to_utf8/to_utf8.cpp +++ b/components/to_utf8/to_utf8.cpp @@ -52,7 +52,7 @@ namespace return std::find_if(input.begin(), input.end(), [](unsigned char v) { return v == 0 || v >= 128; }); } - std::basic_string_view getTranslationArray(FromType sourceEncoding) + std::span getTranslationArray(FromType sourceEncoding) { switch (sourceEncoding) { diff --git a/components/to_utf8/to_utf8.hpp b/components/to_utf8/to_utf8.hpp index 80af6586c9..0dde0fced6 100644 --- a/components/to_utf8/to_utf8.hpp +++ b/components/to_utf8/to_utf8.hpp @@ -2,6 +2,7 @@ #define COMPONENTS_TOUTF8_H #include +#include #include #include #include @@ -50,7 +51,7 @@ namespace ToUTF8 inline void copyFromArrayLegacyEnc( std::string_view::iterator& chp, std::string_view::iterator end, char*& out) const; - const std::basic_string_view mTranslationArray; + const std::span mTranslationArray; }; class Utf8Encoder