Add to_wstring

This commit is contained in:
Victor Zverovich
2018-02-07 07:08:14 -08:00
parent 1e19ae8348
commit 2f13d41e30
2 changed files with 22 additions and 4 deletions

View File

@@ -1608,6 +1608,10 @@ TEST(FormatTest, ToString) {
EXPECT_EQ("42", fmt::to_string(42));
}
TEST(FormatTest, ToWString) {
EXPECT_EQ(L"42", fmt::to_wstring(42));
}
TEST(FormatTest, OutputIterators) {
std::list<char> out;
fmt::format_to(std::back_inserter(out), "{}", 42);