Remove xchar.h include from ostream.h

This commit is contained in:
Victor Zverovich committed 2022-03-18 10:53:15 -07:00
1 parent ac0d9d5fe2
commit 4e39e13085
2 files changed
+7 -4

No files matched your search

+3 -1
View File
@@ -330,9 +330,11 @@ TEST(xchar_test, color) {
}
TEST(xchar_test, ostream) {
#if !FMT_GCC_VERSION || FMT_GCC_VERSION >= 409
std::wostringstream wos;
fmt::print(wos, L"Don't {}!", L"panic");
EXPECT_EQ(L"Don't panic!", wos.str());
EXPECT_EQ(wos.str(), L"Don't panic!");
#endif
}
TEST(xchar_test, to_wstring) { EXPECT_EQ(L"42", fmt::to_wstring(42)); }