i may be silly

This commit is contained in:
Kae 2023-06-29 04:08:11 +10:00
parent a78102c2a9
commit 8a2de03b0f
4 changed files with 11 additions and 11 deletions

View File

@ -1136,3 +1136,7 @@ size_t hash<StringList>::operator()(StringList const& sl) const {
}
}
fmt::appender fmt::formatter<Star::String>::format(Star::String const& s, format_context& ctx) const {
return formatter<std::string>::format(s.utf8(), ctx);
};

View File

@ -520,11 +520,7 @@ StringList StringList::sorted(Comparator&& comparator) const {
}
template <> struct fmt::formatter<Star::String> : formatter<std::string> {
auto format(Star::String const& s, format_context& ctx) const;
};
auto fmt::formatter<Star::String>::format(Star::String const& s, format_context& ctx) const {
return formatter<std::string>::format(s.utf8(), ctx);
fmt::appender format(Star::String const& s, format_context& ctx) const;
};
#endif

View File

@ -426,3 +426,7 @@ std::ostream& operator<<(std::ostream& os, StringView const& s) {
}
}
fmt::appender fmt::formatter<Star::StringView>::format(Star::StringView const& s, format_context& ctx) const {
return formatter<std::string_view>::format(s.utf8(), ctx);
};

View File

@ -116,11 +116,7 @@ private:
}
template <> struct fmt::formatter<Star::StringView> : formatter<std::string_view> {
auto format(Star::StringView const& s, format_context& ctx) const;
};
auto fmt::formatter<Star::StringView>::format(Star::StringView const& s, format_context& ctx) const {
return formatter<std::string_view>::format(s.utf8(), ctx);
fmt::appender format(Star::StringView const& s, format_context& ctx) const;
};
#endif