deps: update magic_enum to v0.9.8 (#6980)

This commit is contained in:
pajlada
2026-05-04 19:04:07 +02:00
committed by GitHub
parent 06ff15a029
commit 505df040bf
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ template <typename BinaryPredicate>
constexpr bool eq(
QStringView a, QStringView b,
[[maybe_unused]] BinaryPredicate &&
p) noexcept(magic_enum::detail::is_nothrow_invocable<BinaryPredicate>())
p) noexcept(magic_enum::detail::is_nothrow_invocable_v<BinaryPredicate>)
{
// Note: QStringView::operator== isn't constexpr
if (a.size() != b.size())
+2 -1
View File
@@ -71,7 +71,8 @@ inline constexpr auto TAGGED_DATA_STORAGE =
template <typename C, typename E, typename Tag, E V>
consteval auto enumTaggedDataStorage()
{
constexpr std::string_view utf8 = TAGGED_DATA_STORAGE<decltype(V), Tag, V>;
constexpr std::string_view utf8 =
TAGGED_DATA_STORAGE<decltype(V), Tag, V>.str();
static_assert(isLatin1<utf8.size()>(utf8),
"Can't convert non-latin1 UTF8 to UTF16");