1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2025-01-31 12:31:45 +01:00

Fix bitset formatting

This commit is contained in:
Nekotekina 2018-09-14 12:18:07 +03:00
parent 445e5def42
commit d347145855

View File

@ -399,3 +399,15 @@ public:
return atomic_storage<under>::btc(m_data.m_data, static_cast<uint>(static_cast<under>(rhs))); return atomic_storage<under>::btc(m_data.m_data, static_cast<uint>(static_cast<under>(rhs)));
} }
}; };
template <typename T>
struct fmt_unveil<bs_t<T>, void>
{
// Format as is
using type = bs_t<T>;
static inline u64 get(const bs_t<T>& bitset)
{
return static_cast<std::underlying_type_t<T>>(bitset);
}
};