summaryrefslogtreecommitdiff
path: root/AK/Endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'AK/Endian.h')
-rw-r--r--AK/Endian.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/AK/Endian.h b/AK/Endian.h
index 549e4f4869..adf3d82257 100644
--- a/AK/Endian.h
+++ b/AK/Endian.h
@@ -6,6 +6,7 @@
#pragma once
+#include <AK/Format.h>
#include <AK/Forward.h>
#include <AK/Platform.h>
@@ -134,6 +135,14 @@ private:
template<typename T>
using NetworkOrdered = BigEndian<T>;
+template<typename T>
+requires(HasFormatter<T>) struct Formatter<LittleEndian<T>> : Formatter<T> {
+};
+
+template<typename T>
+requires(HasFormatter<T>) struct Formatter<BigEndian<T>> : Formatter<T> {
+};
+
}
using AK::BigEndian;