From 3c1ae20facafa4cf1468f262f28c2b9197239f05 Mon Sep 17 00:00:00 2001 From: Qudix <17361645+Qudix@users.noreply.github.com> Date: Mon, 20 May 2024 01:10:04 -0500 Subject: [PATCH] feat: add formatter for `BSFixedString` --- CommonLibF4/include/RE/Bethesda/BSFixedString.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CommonLibF4/include/RE/Bethesda/BSFixedString.h b/CommonLibF4/include/RE/Bethesda/BSFixedString.h index eca22314..81ba4145 100644 --- a/CommonLibF4/include/RE/Bethesda/BSFixedString.h +++ b/CommonLibF4/include/RE/Bethesda/BSFixedString.h @@ -323,3 +323,13 @@ namespace RE }; static_assert(std::is_empty_v); } + +template +struct std::formatter, CharT> : formatter +{ + template + constexpr auto format(const RE::detail::BSFixedString& a_version, FormatContext& a_ctx) const + { + return formatter::format(a_version.c_str(), a_ctx); + } +};