diff options
author | Moustafa Raafat <MoustafaRaafat2@gmail.com> | 2022-11-14 18:20:59 +0000 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2022-12-09 11:25:30 +0000 |
commit | ae2abcebbbabf7ca8b806b5555c11cd0b216dbdb (patch) | |
tree | cef5406660d2e60fedda9dcd0839c8f88e0a2d93 /Userland/Libraries/LibEDID/EDID.h | |
parent | 9721da2e6ae2948319ae731b65073d1fe7200b4f (diff) | |
download | serenity-ae2abcebbbabf7ca8b806b5555c11cd0b216dbdb.zip |
Everywhere: Use C++ concepts instead of requires clauses
Diffstat (limited to 'Userland/Libraries/LibEDID/EDID.h')
-rw-r--r-- | Userland/Libraries/LibEDID/EDID.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Userland/Libraries/LibEDID/EDID.h b/Userland/Libraries/LibEDID/EDID.h index eff8f26be0..e09802eaf4 100644 --- a/Userland/Libraries/LibEDID/EDID.h +++ b/Userland/Libraries/LibEDID/EDID.h @@ -8,6 +8,7 @@ #include <AK/ByteBuffer.h> #include <AK/ByteReader.h> +#include <AK/Concepts.h> #include <AK/Endian.h> #include <AK/Error.h> #include <AK/FixedPoint.h> @@ -437,12 +438,12 @@ private: template<typename T> T read_host(T const*) const; - template<typename T> - requires(IsIntegral<T> && sizeof(T) > 1) + template<Integral T> + requires(sizeof(T) > 1) T read_le(T const*) const; - template<typename T> - requires(IsIntegral<T> && sizeof(T) > 1) + template<Integral T> + requires(sizeof(T) > 1) T read_be(T const*) const; Definitions::EDID const& raw_edid() const; |