Skip to content

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

Merged
vitaut merged 2 commits into
fmtlib:masterfrom
phprus:issue-4206
Oct 26, 2024
Merged

vitaut merged 2 commits into
fmtlib:masterfrom
phprus:issue-4206

Conversation

@phprus

@phprus phprus commented Oct 21, 2024

Copy link
Copy Markdown
Contributor

Fix for issue #4206

@vitaut vitaut left a comment

Copy link
Copy Markdown
Contributor

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).

Comment thread include/fmt/base.h Outdated
Comment thread include/fmt/base.h Outdated
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
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
@vitaut
vitaut merged commit 168df9a into fmtlib:master Oct 26, 2024
@vitaut

vitaut commented Oct 26, 2024

Copy link
Copy Markdown
Contributor

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