Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix format_to + FMT_STRING for wide character type #3931

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

hmbj
Copy link
Contributor

@hmbj hmbj commented Apr 14, 2024

Fixes issue #3925

@hmbj
Copy link
Contributor Author

hmbj commented Apr 14, 2024

Not sure if this is the optimal fix, though :)

@hmbj hmbj marked this pull request as ready for review April 14, 2024 19:39
Copy link
Contributor

@vitaut vitaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I think it's better to keep detail::to_string_view and instead add a format_to overload that takes wformat_string similar to this one:

auto format(wformat_string<T...> fmt, T&&... args) -> std::wstring {

Added overload that takes a wformat_string.
Fixes issue fmtlib#3925.
@hmbj hmbj requested a review from vitaut April 16, 2024 19:08
include/fmt/xchar.h Outdated Show resolved Hide resolved
@vitaut vitaut merged commit ee0c335 into fmtlib:master Apr 17, 2024
41 checks passed
@vitaut
Copy link
Contributor

vitaut commented Apr 17, 2024

Merged, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants