endian: add fmt::formatter for value

This commit is contained in:
Danny Robson 2023-11-19 09:36:30 +10:00
parent da8df2297d
commit 3feca52a87

View File

@ -298,3 +298,10 @@ namespace cruft {
using bi32 = endian::big<i32>;
using bi64 = endian::big<i64>;
}
#include <fmt/ostream.h>
template <cruft::endian::scheme SchemeV, typename StorageT>
struct fmt::formatter<cruft::endian::value<SchemeV, StorageT>> :
public fmt::ostream_formatter
{};