mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 16:28:54 +00:00
Everywhere: Switch from EnableIf to requires
C++20 provides the `requires` clause which simplifies the ability to limit overload resolution. Prefer it over `EnableIf` With all uses of `EnableIf` being removed, also remove the implementation so future devs are not tempted.
This commit is contained in:
parent
8f7219c6fa
commit
2844f7c333
Notes:
sideshowbarker
2024-07-17 17:13:48 +09:00
Author: https://github.com/ldm5180
Commit: 2844f7c333
Pull-request: https://github.com/SerenityOS/serenity/pull/13096
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/alimpfard
9 changed files with 63 additions and 73 deletions
|
@ -307,8 +307,8 @@ struct StandardFormatter {
|
|||
void parse(TypeErasedFormatParams&, FormatParser&);
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
struct Formatter<T, typename EnableIf<IsIntegral<T>>::Type> : StandardFormatter {
|
||||
template<Integral T>
|
||||
struct Formatter<T> : StandardFormatter {
|
||||
Formatter() = default;
|
||||
explicit Formatter(StandardFormatter formatter)
|
||||
: StandardFormatter(move(formatter))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue