diff options
Diffstat (limited to 'AK/Endian.h')
-rw-r--r-- | AK/Endian.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/AK/Endian.h b/AK/Endian.h index 060f78dc9b..bfa64b9777 100644 --- a/AK/Endian.h +++ b/AK/Endian.h @@ -151,6 +151,16 @@ template<typename T> requires(HasFormatter<T>) struct Formatter<BigEndian<T>> : Formatter<T> { }; +template<typename T> +struct Traits<LittleEndian<T>> : public GenericTraits<LittleEndian<T>> { + static constexpr bool is_trivially_serializable() { return Traits<T>::is_trivially_serializable(); } +}; + +template<typename T> +struct Traits<BigEndian<T>> : public GenericTraits<BigEndian<T>> { + static constexpr bool is_trivially_serializable() { return Traits<T>::is_trivially_serializable(); } +}; + } #if USING_AK_GLOBALLY |