Index: include/gtest/gtest-message.h |
=================================================================== |
--- include/gtest/gtest-message.h (revision 610) |
+++ include/gtest/gtest-message.h (working copy) |
@@ -162,6 +162,8 @@ |
return *this << (b ? "true" : "false"); |
} |
+ |
+#if GTEST_HAS_WCHAR |
// These two overloads allow streaming a wide C string to a Message |
// using the UTF-8 encoding. |
Message& operator <<(const wchar_t* wide_c_str) { |
@@ -170,6 +172,7 @@ |
Message& operator <<(wchar_t* wide_c_str) { |
return *this << internal::String::ShowWideCString(wide_c_str); |
} |
+#endif // GTEST_HAS_WCHAR |
#if GTEST_HAS_STD_WSTRING |
// Converts the given wide string to a narrow string using the UTF-8 |