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 /AK/String.h | |
parent | 9721da2e6ae2948319ae731b65073d1fe7200b4f (diff) | |
download | serenity-ae2abcebbbabf7ca8b806b5555c11cd0b216dbdb.zip |
Everywhere: Use C++ concepts instead of requires clauses
Diffstat (limited to 'AK/String.h')
-rw-r--r-- | AK/String.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/String.h b/AK/String.h index 3ce07bdb89..1df4edac92 100644 --- a/AK/String.h +++ b/AK/String.h @@ -6,6 +6,7 @@ #pragma once +#include <AK/Concepts.h> #include <AK/Format.h> #include <AK/Forward.h> #include <AK/RefCounted.h> @@ -74,9 +75,8 @@ public: [[nodiscard]] u32 hash() const; - template<typename T> + template<Arithmetic T> static ErrorOr<String> number(T value) - requires IsArithmetic<T> { return formatted("{}", value); } |