diff --git a/src/util/SpanCast.hxx b/src/util/SpanCast.hxx index b99e5111e..d786f9d89 100644 --- a/src/util/SpanCast.hxx +++ b/src/util/SpanCast.hxx @@ -9,6 +9,7 @@ #include #include #include +#include /** * Cast a std::span to a std::span, rounding down to the @@ -95,14 +96,7 @@ ToStringView(std::span s) noexcept } template -constexpr std::basic_string_view -ToStringView(std::span s) noexcept -{ - return {s.data(), s.size()}; -} - -template -constexpr std::basic_string_view +constexpr std::basic_string_view> ToStringView(std::span s) noexcept { return {s.data(), s.size()};