From 9950a388d23b69cd86bed5306a0c6b99d7c751cb Mon Sep 17 00:00:00 2001 From: Morph <39850852+Morph1984@users.noreply.github.com> Date: Sun, 28 May 2023 15:00:05 -0400 Subject: 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. --- src/common/bit_field.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/common/bit_field.h') diff --git a/src/common/bit_field.h b/src/common/bit_field.h index e4e58ea45..0168ff9cb 100644 --- a/src/common/bit_field.h +++ b/src/common/bit_field.h @@ -188,3 +188,8 @@ private: template using BitFieldBE = BitField; + +template +inline auto format_as(BitField bitfield) { + return bitfield.Value(); +} -- cgit v1.2.3