Fix bitset formatting

This commit is contained in:
Nekotekina 2018-09-14 12:18:07 +03:00
parent 445e5def42
commit d347145855
1 changed files with 12 additions and 0 deletions

View File

@ -399,3 +399,15 @@ public:
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);
}
};