mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Fix format_to + FMT_STRING for wide character type (#3931)
Added overload that takes a wformat_string. Fixes issue #3925.
This commit is contained in:
committed by
GitHub
parent
99735764ea
commit
ee0c3351a4
@ -195,6 +195,12 @@ TEST(xchar_test, format_to) {
|
||||
EXPECT_STREQ(buf.data(), L"42");
|
||||
}
|
||||
|
||||
TEST(xchar_test, compile_time_string_format_to) {
|
||||
std::wstring ws;
|
||||
fmt::format_to(std::back_inserter(ws), FMT_STRING(L"{}"), 42);
|
||||
EXPECT_EQ(L"42", ws);
|
||||
}
|
||||
|
||||
TEST(xchar_test, vformat_to) {
|
||||
int n = 42;
|
||||
auto args = fmt::make_wformat_args(n);
|
||||
|
Reference in New Issue
Block a user