mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 05:21:25 +12:00
Fix bitset formatting
This commit is contained in:
parent
445e5def42
commit
d347145855
1 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue