util/SpanCast: allow ToStringView() only with integral char types
This avoids std::string_view specialization that make no sense.
This commit is contained in:
parent
fae235197f
commit
7ebe56fdd9
@ -92,6 +92,7 @@ ToStringView(std::span<const std::byte> s) noexcept
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
requires std::is_integral_v<T>
|
||||||
constexpr std::basic_string_view<std::remove_const_t<T>>
|
constexpr std::basic_string_view<std::remove_const_t<T>>
|
||||||
ToStringView(std::span<T> s) noexcept
|
ToStringView(std::span<T> s) noexcept
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user