From 78ade454b107708024e11919086d5093b15facd5 Mon Sep 17 00:00:00 2001 From: Lioncache Date: Mon, 9 Feb 2026 10:54:23 -0500 Subject: [PATCH] TString: Also explicitly add fmt formatter for TString underlying type Also allows trivially formatting this as well. --- Source/Common/TString.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Common/TString.h b/Source/Common/TString.h index 277d231..2dce34c 100644 --- a/Source/Common/TString.h +++ b/Source/Common/TString.h @@ -1346,6 +1346,13 @@ using TStringList = std::list; using T16StringList = std::list; using T32StringList = std::list; +template <> +struct fmt::formatter> : fmt::formatter +{ + auto format(const TBasicString& str, fmt::format_context& ctx) const { + return fmt::formatter::format(str.ToStdString(), ctx); + } +}; template <> struct fmt::formatter : fmt::formatter {