mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
Everywhere: Use C++ concepts instead of requires clauses
This commit is contained in:
parent
9721da2e6a
commit
ae2abcebbb
17 changed files with 60 additions and 61 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue