Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarStringView.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-29 02:31:12 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-29 02:31:12 +1000
commit306494bd2d84625971f81167daf41a3d93018f46 (patch)
treef6816d8971c619a00c9e2ca2a2a8731b96e7542b /source/core/StarStringView.hpp
parent422871450d309cff9a5eb3dea2101cca83c5dc12 (diff)
Unix fixes
Diffstat (limited to 'source/core/StarStringView.hpp')
-rw-r--r--source/core/StarStringView.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/core/StarStringView.hpp b/source/core/StarStringView.hpp
index 67d654e..9193de9 100644
--- a/source/core/StarStringView.hpp
+++ b/source/core/StarStringView.hpp
@@ -116,7 +116,11 @@ private:
}
template <> struct fmt::formatter<Star::StringView> : formatter<std::string_view> {
- fmt::v10::appender format(Star::StringView const& s, format_context& ctx) const;
+ 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);
};
#endif \ No newline at end of file