util/SpanCast: allow ToStringView() only with integral char types

This avoids std::string_view specialization that make no sense.
This commit is contained in:
Max Kellermann 2024-04-16 12:36:47 +02:00
parent fae235197f
commit 7ebe56fdd9
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ ToStringView(std::span<const std::byte> s) noexcept
}
template<typename T>
requires std::is_integral_v<T>
constexpr std::basic_string_view<std::remove_const_t<T>>
ToStringView(std::span<T> s) noexcept
{