diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/bit_field.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <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(); +} |