Move wchar_t overloads to xchar.h

This commit is contained in:
Victor Zverovich
2021-05-30 06:41:39 -07:00
parent 19d45f4b31
commit 486a80e8ef
4 changed files with 58 additions and 58 deletions
+6
View File
@@ -24,6 +24,12 @@ TEST(wchar_test, format_explicitly_convertible_to_wstring_view) {
}
#endif
TEST(wchar_test, format_to) {
auto buf = std::vector<wchar_t>();
fmt::format_to(std::back_inserter(buf), L"{}{}", 42, L'\0');
EXPECT_STREQ(buf.data(), L"42");
}
TEST(wchar_test, vformat_to) {
using wcontext = fmt::wformat_context;
fmt::basic_format_arg<wcontext> warg = fmt::detail::make_arg<wcontext>(42);