mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 11:18:13 +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/DeprecatedString.h>
|
||||
#include <AK/FixedPoint.h>
|
||||
#include <AK/Format.h>
|
||||
|
@ -146,8 +147,8 @@ private:
|
|||
Logarithmic const m_logarithmic;
|
||||
};
|
||||
|
||||
template<typename EnumT>
|
||||
requires(IsEnum<EnumT>) class ProcessorEnumParameter final : public Detail::ProcessorParameterSingleValue<EnumT> {
|
||||
template<Enum EnumT>
|
||||
class ProcessorEnumParameter final : public Detail::ProcessorParameterSingleValue<EnumT> {
|
||||
public:
|
||||
ProcessorEnumParameter(DeprecatedString name, EnumT initial_value)
|
||||
: Detail::ProcessorParameterSingleValue<EnumT>(move(name), ParameterType::Enum, initial_value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue