diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-02-03 16:23:52 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-03 23:33:20 +0100 |
commit | be4c14452485d0f824e136393c06079a06732028 (patch) | |
tree | ce4951ad0a40e49daa109168dd64e5c6059f2c50 /AK/Format.h | |
parent | 6b0c4908dfbe3c1095cb9d2c5be5b168f4530e08 (diff) | |
download | serenity-be4c14452485d0f824e136393c06079a06732028.zip |
AK: Support formatting Vectors with any inline_capacity
The default Vector type has its inline capacity set to 0, which means
any Vector with non-zero inline capacity was unformattable.
Diffstat (limited to 'AK/Format.h')
-rw-r--r-- | AK/Format.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/Format.h b/AK/Format.h index d5e127356f..2034980594 100644 --- a/AK/Format.h +++ b/AK/Format.h @@ -329,8 +329,8 @@ struct Formatter<StringView> : StandardFormatter { ErrorOr<void> format(FormatBuilder&, StringView); }; -template<typename T> -requires(HasFormatter<T>) struct Formatter<Vector<T>> : StandardFormatter { +template<typename T, size_t inline_capacity> +requires(HasFormatter<T>) struct Formatter<Vector<T, inline_capacity>> : StandardFormatter { Formatter() = default; explicit Formatter(StandardFormatter formatter) |