mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
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.
This commit is contained in:
parent
6b0c4908df
commit
be4c144524
1 changed files with 2 additions and 2 deletions
|
@ -329,8 +329,8 @@ struct Formatter<StringView> : StandardFormatter {
|
||||||
ErrorOr<void> format(FormatBuilder&, StringView);
|
ErrorOr<void> format(FormatBuilder&, StringView);
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename T>
|
template<typename T, size_t inline_capacity>
|
||||||
requires(HasFormatter<T>) struct Formatter<Vector<T>> : StandardFormatter {
|
requires(HasFormatter<T>) struct Formatter<Vector<T, inline_capacity>> : StandardFormatter {
|
||||||
|
|
||||||
Formatter() = default;
|
Formatter() = default;
|
||||||
explicit Formatter(StandardFormatter formatter)
|
explicit Formatter(StandardFormatter formatter)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue