types.hpp: Format C arrays too for assert errors

This commit is contained in:
Elad Ashkenazi 2024-08-02 14:11:05 +03:00 committed by GitHub
parent a323e753ff
commit 70502a698e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -928,6 +928,10 @@ std::conditional_t<std::is_integral_v<std::remove_cvref_t<T>>, usz, std::string_
{
return obj;
}
else if constexpr (std::is_array_v<type> && std::is_constructible_v<std::string_view, type>)
{
return { obj, std::size(obj) - 1 };
}
else
{
return std::string_view{};