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

Implement fmt::format_to into std::vector<char> #4211

Merged
merged 2 commits into from
Oct 26, 2024

Conversation

phprus
Copy link
Contributor

@phprus phprus commented Oct 21, 2024

Fix for issue #4206

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! Overall looks good, but let's simplify this a bit (see the inline comment).

include/fmt/base.h Outdated Show resolved Hide resolved
typename T, typename InputIt, typename OutputIt,
FMT_ENABLE_IF(
is_back_insert_iterator<OutputIt>::value&& has_container_append<
decltype(get_container(std::declval<OutputIt>())), InputIt>::value)>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we move get_container to the trait?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@vitaut vitaut merged commit 168df9a into fmtlib:master Oct 26, 2024
45 checks passed
@vitaut
Copy link
Contributor

vitaut commented Oct 26, 2024

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