From e7b7242ad7255badb452a214aa03486c02a5c4ab Mon Sep 17 00:00:00 2001 From: YexuanXiao Date: Sat, 25 Apr 2026 23:00:09 +0800 Subject: [PATCH] Move operator<< to winrt::Windows::Foundation --- strings/base_stringable_streams.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/strings/base_stringable_streams.h b/strings/base_stringable_streams.h index 52b481d6f..fa17b0f3e 100644 --- a/strings/base_stringable_streams.h +++ b/strings/base_stringable_streams.h @@ -1,8 +1,11 @@ #ifndef WINRT_LEAN_AND_MEAN -inline std::wostream& operator<<(std::wostream& stream, winrt::Windows::Foundation::IStringable const& stringable) +namespace winrt::Windows::Foundation { - stream << stringable.ToString(); - return stream; + inline std::wostream& operator<<(std::wostream& stream, winrt::Windows::Foundation::IStringable const& stringable) + { + stream << stringable.ToString(); + return stream; + } } #endif