externals: Update to fmt 10 and add format_as formatter for BitField

Implicit conversions are now disallowed in fmt 10. Use format_as to convert to the underlying type.
This commit is contained in:
Morph 2023-05-28 15:00:05 -04:00
parent b26018e2e6
commit 9950a388d2
4 changed files with 9 additions and 4 deletions

View file

@ -188,3 +188,8 @@ private:
template <std::size_t Position, std::size_t Bits, typename T>
using BitFieldBE = BitField<Position, Bits, T, BETag>;
template <std::size_t Position, std::size_t Bits, typename T, typename EndianTag = LETag>
inline auto format_as(BitField<Position, Bits, T, EndianTag> bitfield) {
return bitfield.Value();
}