diff --git a/strings/base_stringable_format.h b/strings/base_stringable_format.h index 86c5acfc6..e8f51c3f2 100644 --- a/strings/base_stringable_format.h +++ b/strings/base_stringable_format.h @@ -1,7 +1,7 @@ #ifdef __cpp_lib_format template -auto std::formatter::format(winrt::Windows::Foundation::IStringable const& obj, FormatContext& fc) +auto std::formatter::format(winrt::Windows::Foundation::IStringable const& obj, FormatContext& fc) const { return std::formatter::format(obj.ToString(), fc); } diff --git a/strings/base_stringable_format_1.h b/strings/base_stringable_format_1.h index 6a7becdfc..82e6afa38 100644 --- a/strings/base_stringable_format_1.h +++ b/strings/base_stringable_format_1.h @@ -4,6 +4,6 @@ template <> struct std::formatter : std::formatter { template - auto format(winrt::Windows::Foundation::IStringable const& obj, FormatContext& fc); + auto format(winrt::Windows::Foundation::IStringable const& obj, FormatContext& fc) const; }; #endif