mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-02 22:24:26 +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
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue