endian: add fmt::formatter for value
This commit is contained in:
parent
da8df2297d
commit
3feca52a87
@ -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
|
||||
{};
|
Loading…
Reference in New Issue
Block a user